home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Utilities / vim-5.1 / todo < prev    next >
Encoding:
Text File  |  1998-04-07  |  102.0 KB  |  1,965 lines

  1.                               TODO list for Vim
  2.  
  3. This is a veeeery long list of known bugs, current work, and desired
  4. improvements.  To make it a little bit accessible, the items are grouped by
  5. subject.  In the first columns of the line a classification is used to be
  6. able to look for "the next thing to do":
  7.  
  8. Priority classification:        Amount of work expected:
  9. 9    next point release            q    quick fix
  10. 8    next release                s    small change
  11. 7    as soon as possible            l    a little work
  12. 6    soon                        w    some work
  13. 5    should be included            b    big change
  14. 4    nice to have                m    major change
  15. 3    consider including            ?    on hold (don't know how to fix it)
  16. 2    maybe not                    -    unclassified
  17. 1    probably not
  18. -    unclassified
  19.  
  20. -------------------- Known bugs and current work -----------------------
  21.  
  22. Considered for release 5.2:
  23. -    Speed up screen output in 32 bit DOS version (patch from Lange).
  24. -    Add ":syn group" (patches/bigham.groups).
  25. -    Add ":syntax include <file-name>  <group-name> (Bigham).  Includes another
  26.     syntax file, grouping the top-level items under <group-name>.  Useful for
  27.     e.g. including html.vim to be used in a HTML-comment region of c.vim.
  28.     (patches/bigham.include, patches/bigham.docs)
  29. -    Add mode with Windows compatibility (mouse buttons usage, cut/paste, etc.)
  30. -    First ":browse" and ":confirm" implementation (patch from Webb and Negri).
  31. -    Tcl interface (Wilken, in one patch from Hiebert).
  32. -    Change PC distribution to doc+syntax arch. plus a few .exe archives.
  33. -    Win32: Change to directory of edited file (patches/negri_c*.diff).
  34. -    Amiga GUI (patch from Nielsen: patches/amiga_gui.lha).  Remove amiga.h,
  35.     and its inclusion from gui_amiga.h
  36. -    Scope arguments for ":tag", e.g.: ":tag class:cPage open".
  37. -    Add MultiByte patches from Baek?  (patches/baek.mutibyte.diff)
  38. -    Add language settings in the syntax files.  With "if want_syntax" and "if
  39.     start_language".  And to switch language off: "if stop_language".
  40.  
  41.  
  42. Considered for release 6.0:
  43. -    Folding.
  44. -    Vertically splitting the screen.  Show differences between files.
  45. -    Editing the command line with Normal mode Vi commands.
  46. -    Further support for editing files in projects (see ":idselect").
  47.  
  48.  
  49. Win32 GUI known bugs:
  50. 8    MessageBox used for error messages can be too big.    There is no way to
  51.     scroll it, or even hit the OK button (but you can hit return).
  52. 9    Executing external commands: Closing the window before hitting a key kills
  53.     Vim.
  54. 8    When the 'shell' cannot be executed, should give an appropriate error msg.
  55. 8    An external command that produces an error code, puts the error message in
  56.     a dialog box.  Try ":!grep asdf xyz" with 'shell' == ksh.  Now have to
  57.     close the window and close the dialog.  Can this be reduced to one?
  58.     Also: Add a flag to ignore error messages here (for mappings).
  59. 9    Scrollbar up/down arrows are one pixel smaller than the thumb area?
  60. 9    Using the mouse wheel on a Logitech mouse, a scroll up sometimes doesn't
  61.     work properly.    When syntax highlighting is off, it's OK.  Timing problem?
  62. 8    There is a line below the main window which is not redrawn?
  63. 9    Scrollbar width doesn't change when selecting other windows appearance.
  64. 9    With 'nowrap', the bottom scrollbar sometimes shows a small thumb. (Webb)
  65. 8    Drawing text transparantly doesn't seem to work (when drawing part cursor).
  66. 8    The compose key doesn't work properly (Cepas).
  67. 8    When double clicking a file, Vim should have it's current directory set to
  68.     the dir of that file, and remove the path from the filename.
  69.     patches/negri_cd.diff.
  70.     When dropping a directory on gvim, go to that directory and edit an empty
  71.     buffer.
  72. 8    CTRL key doesn't always work in combination with ALT key.  It does work
  73.     for function keys, not for alphabetic characters.
  74. 8    CTRL-- doesn't work for AZERTY, because it's CTRL-[ for QWERTY.  How do we
  75.     know which keyboard is being used?
  76. 9    When pasting with the middle mouse button, a trailing CTRL-V is inserted?
  77.     (Tsirkin).
  78. 9    Clipboard doesn't work as it should:
  79.     - When pasting, should work like 'paste' is on.
  80.     - When pasting, interrupting with CTRL-C or CTRL-Break doesn't work.
  81.     - vj"ay DOES put text on the clipboard.  Should not happen.
  82.     - Selecting text while editing a command-line, or output of ":set", has an
  83.       implied copy to the clipboard.  Remove this, and add a command character
  84.       to copy/cut/delete the selected text.
  85.     --> Add 'c' flag to 'guioptions': When included, the unnamed buffer is
  86.     copied to the clipboard, and the other way around.    When excluded, only
  87.     the "* register equals the clipboard. (Shan)
  88. 9    Screen redraw problems when: ":split file" (or CTRL-W ^), causing the
  89.     ATTENTION message.    Also when there are two windows and using ":recover".
  90.     (Webb)    'dir' must have more than one directory.
  91. 8    When scrolling, and a background color is dithered, the dither pattern
  92.     doesn't always join correctly between the scolled area and the new drawn
  93.     area (Koloseike).
  94. 8    Resizing the window at the hit-return prompt doesn't redraw.
  95. 7    Should be able to support the Windows standard keys (with a set of
  96.     mappings in gvimrc_example):
  97.     Alt-Space    popup system menu
  98.     CTRL-C        copy Visual area
  99.     CTRL-X        cut Visual area
  100.     CTRL-V        paste Visual area
  101.     Shift-Right    and CTRL-SHIFT-Right/Left/Down/Up    extend Visual area
  102. 9    Pressing left&right mouse buttons simultaneously doesn't produce a middle
  103.     mouse button.
  104.  
  105.  
  106. Vi incompatibility:
  107. 8    With undo/redo only marks in the changed lines should be changed.  Other
  108.     marks should be kept.  Vi keeps each mark at the same text, even when it
  109.     is deleted or restored. (Webb)  Also: A mark is lost after: make change,
  110.     undo, redo and undo.
  111. 8    When using ":n" ":rew", the prev. context mark is in the same place as the
  112.     cursor, not on the first line.
  113. 8    text is put in register 1 when using "c" and "d" with a motion character:
  114.     <control-A>   %   (   ) `<character>   /   ?   N n     {     }
  115.     (from Nvi manual).
  116. 8    When stdin is not a tty, and Vim reads commands from it, an error should
  117.     make Vim exit.
  118. 8    Unix Vim (not gvim): Typing CTRL-C in Ex mode should finish the line
  119.     (currently you can continue typing, but it's truncated later anyway).
  120. 8    When loading a file in the .exrc, Vi loads the argument anyway.  Vim skips
  121.     loading the argument if there is a file already. When no file argument
  122.     given, Vi starts with an empty buffer, Vim keeps the loaded file. (Bearded)
  123. 8    Add 'swapignore' option? (Tsirkin)
  124. 8    In insert mode, when using <BS> or <Del>, don't wipe out the text, but
  125.     only move back the cursor.    Behaves like '$' in 'cpoptions'.  Use a flag
  126.     in 'cpoptions' to switch this on/off.
  127. 7    When interrupting reading a file, Vi considers the buffer modified.  Add a
  128.     'cpoptions' flag for this?
  129. 7    CTRL-L is not the end of a section?  It is for Posix!  Make it an option.
  130. 7    Implement 'prompt' option.    Init to off when stdin is not a tty.
  131. 7    CTRL-T in insert mode inserts 'shiftwidth' of spaces at the cursor.
  132. 7    Vi doesn't do autoindenting when input is not from a tty (in Ex mode).
  133. 7    "z3<CR>" should still use the whole window, but only redisplay 3 lines.
  134. 7    ":tag xx" should move the cursor to the first non-blank.  Or should it go
  135.     to the match with the tag?    Option?
  136. 7    Implement 'autoprint'/'ap' option.
  137. 7    Support enctrypted files (-x option).  See also -z.
  138. 6    After ":cd", meaning of file names for existing buffers changes.  Do we
  139.     care?
  140. 7    Add flag in 'cpoptions' that makes <BS> after a count work like <Del>
  141.     (Sayre).
  142. 7    Add flag in 'cpoptions' that makes operator (yank, filter) not move the
  143.     cursor, at least when canceled. (default vi compatible).
  144. 7    Make "5dd" on last-but-one-line not delete anything (vi compatible).
  145.     Change cursor_down()???  Many other commands will change too: "5j", "c5j",
  146.     etc.  Add flag in 'cpoptions'?
  147. 7    This Vi-trick doesn't work: "Q" to go to Ex mode, then "g/pattern/visual".
  148.     In Vi you can edit in visual mode, and when doing "Q" you jump to the next
  149.     match.  Nvi can do it too.
  150.  
  151.  
  152. GUI:
  153. 9    Basic flaw in the GUI code: NextScreen is updated before calling
  154.     gui_write(), but the GUI code relies on NextScreen to represent the state
  155.     of where it is processing the output.
  156. 9    When running an external program, it can't always be killed with CTRL-C.
  157.     e.g. on Solaris 5.5, when using "K" (Keech).
  158. 9    gui_check_colors() is not called at the right moment.  Do it much later,
  159.     to avoid problems.
  160. 9    On Solaris: Using a "-geometry" argument, bigger than the window where Vim
  161.     is started from, causes empty lines below the cmdline. (raf)
  162. 9    When selecting the output from ":vers", including the hit-return message,
  163.     it works OK, unless another window is clicked on.
  164.     When getting window focus, and there is a Visual selection, grab the
  165.     selection again?  We somehow loose the selection when moving another
  166.     window to front.  Check how xterm does this.
  167. 9?    GUI Athena: When using "menu a.b.c.d lll", the "b" submenu does not
  168.     disappear.
  169. 9?    Athena: Use one of the Syntax menu items.  Then ":aunmenu Syntax", Vim
  170.     crashes.
  171. 9?    Athena: When using ":unmenu" in menu item, the reversing of menu items
  172.     is wrong.  Happens with Syntax/manual.    Problem with not removing the
  173.     reversed text when destroying the menu item?  For Rochholz Vim crashes.
  174.     After removing a menu completely, then adding another menu: The removed
  175.     menu reappears, but doesn't do anything.
  176. 9    gui_update_cursor() is called for a cursor shape change, even when there
  177.     are mappings to be processed.  Only do something when going to wait for
  178.     input.    Or maybe every 100 ms?
  179. 9    Between version 5.0h and 5.0i the Home and End keys stopped working for
  180.     Micheal Schulz (Linux and AIX).  Cannot reproduce it!
  181. 9    Adding many menu items, making two rows, still doesn't work properly on
  182.     HPUX (Motif 1.2).
  183. 8    X11: When the window size is reduced to fit on screen, there are blank
  184.     lines below the text and bottom scrollbar.  "gvim -geometry 80x78+0+0".
  185.     When the "+0+0" is omitted it works.
  186. 8    When setting 'guifont' to an invalid font, should keep the old one,
  187.     instead of switching to the default font. (Mudunuri)
  188. 8    When the character cell of some fonts is different (ascent/descent), the
  189.     cursor leaves an underline behind (Hiebert).
  190. 8    When starting an external command, and 'guipty' set, BS and DEL are mixed
  191.     up.  Set erase character somehow?
  192. 8    A dead circumflex followed by a space should give the '^' character
  193.     (Rommel).  Look how xterm does this.
  194. 8    When trying to start GUI while $DISPLAY is invalid, falls back to vim with
  195.     the options set to gvim values.
  196.     - Reset everything and redo the initializations?
  197.     - Check for valid $DISPLAY before trying to start the GUI?
  198.     - Try connecting to the X server early.  Maybe with XtOpenDisplay()?
  199.     Also: gives strange error messages when repeating ":gui" (free() already
  200.     freed flashes by?).
  201.     Error message is followed by strange characters (starting with '$').
  202. 7    Under Linux, gvim with Lesstif crashes when using a menu.
  203. 7    GUI with Lesstif: adding a menu item that doesn't fit crashes Vim.
  204. 7    GUI with Lesstif: Tear-off menu's don't work.  Lesstif problem?
  205. 8    With non-Visual text selection in Insert mode, the character under the
  206.     cursor is not drawn correctly.
  207. 8    With non-Visually selected text, moving the start/end of the area with a
  208.     right mouse drag, should also move the cursor position, so that the cursor
  209.     is always at the start/end of the area
  210. 8    Motif: Tear-off menu item "----------" crashes Vim on some machines.
  211.     (Netherton)  It works fine for me, maybe it's a Motif problem.
  212. 7    GUI on Solaris 2.5.1, using /usr/dt/..: When gvim starts, cursor is
  213.     hollow, after window lowered/raised it's OK. (Godfrey)
  214. 8    Problem in Athena, when "j" or "k" repeated quickly, display is messed up
  215.     (Lauther).
  216. 8    Athena: When dragging last status line with the mouse, small black lines
  217.     appear in the command line pseudo-scrollbar (only when status line moved
  218.     quickly).
  219. 8    When starting GUI with ":gui" while 'writedel' is non-zero, escape
  220.     sequences are split up.
  221. 8    When starting GUI with ":gui", and window is made smaller because it
  222.     doesn't fit on the screen, there is an extra redraw.
  223. 8    When setting font with .Xdefaults, there is an extra empty line at the
  224.     bottom, which disappears when using ":set guifont=<Tab>". (Chadzelek)
  225. 8    When font shape changes, but not the size, doing ":set font=" does not
  226.     redraw the screen with the new font.  Also for Win32.
  227.     When the size changes, on Solaris 2.5 there isn't a redraw for the
  228.     remaining part of the window (Phillipps).
  229. 8    Window should be redrawn when resizing at the hit-return prompt.
  230. -    Flashes really badly in certain cases when running remotely from a Sun
  231.  
  232.  
  233. MSDOS/DJGPP:
  234. 8    Vim busy waits for new characters or mouse clicks.    Should put in some
  235.     sort of sleep, to avoid eating 50% of the CPU time.  Test on an unpatched
  236.     Windows 95 system!
  237. 9    DOS: Make CTRL-Fx and ALT-Fx work.    Use bioskey(2) to get modifier mask.
  238.     CTRL-F1 = CE-5E, CTRL-F2 = CE-5F, .., CTRL-F10 = CE-67
  239.     ALT-F1 = CE-68, ALT-F2 = CE-69, .., ALT-F10 = CE-71
  240. 7    F11 and F12 under MSDOS don't work.  Can this be fixed?  Check the
  241.     interrupt list for a BIOS function for an extended keyboard.
  242. -    Hitting CTRL-P twice quickly (e.g. in keyword completion) on a 8088 machine,
  243.     starts printer echo! (John Mullin).
  244. -    Mapping things like <M-A> doesn't work, because it generates an extended
  245.     key code.  Use a translation table?
  246. -    MSDOS 16 bit version can't work with COMSPEC that has an argument, e.g.:
  247.     COMSPEC=C:\WINDOWS\COMMAND.COM /E:4096      (Bradley)
  248.     Caused by BCC system() function (Borland "make" has the same problem).
  249. 9    Check if with DJGPP 2.01 the problem of a path starting with a backslash is
  250.     still present.
  251. 9    Can't read an opened swap file when the "share" command has not been used.
  252.     At least ignore the swap files that Vim has opened itself.
  253. 8    Mouse: handle left&right button pressed as middle button pressed.  Add
  254.     modifier keys shift, ctrl and alt.
  255. 8    When too many files are open (10 or 15), strange things happen.  The Dos16
  256.     version runs out of memory, in the Dos32 version "!ls" causes a crash.
  257.     Another symptom: .swp files are not deleted, existing files are "[New
  258.     file]".
  259.  
  260.  
  261. MSDOS, OS/2 and Win32:
  262. 9    ml_setname() contains code to handle ":!cd dir", but mf_do_open() doesn't.
  263.     Is this a bug?    How can the ":!cd dir" problem be reproduced anyway (Webb).
  264. 9    In MSDOS version(s): typing ESC three or four times crashes Vim, when
  265.     'visualbell' is set (Kielhorn).
  266. 8    Environment variables in DOS are not case sensitive.  Make a define for
  267.     STRCMP_ENV(), and use it when comparing environment var names.
  268.     Also: dos16 and dos32 need toupper() before getenv().
  269.  
  270.  
  271. Windows 95:
  272. -    Win32 version: changes font size in DOS box? (Man)
  273. -    There is an occasional lockup when repeating a key while scrolling.  Vim
  274.     unlocks when resizing the window.  Might be a Windows 95 problem.
  275. -    Editing a file by it's short file name and writing it, makes the long file
  276.     name disappear.  Use Unix method for making a backup file?    Better: make
  277.     the way the backup file is made (copy or rename) an option, not a #define.
  278.     Use FindFirstFile()->cAlternateFileName in fname_case() (George).
  279. -    Doing wildcard expansion, will match the short filename, but result in the
  280.     long filename (both DJGPP and Win32).
  281.  
  282.  
  283. Win32:
  284. 9    Add an option (command line?) not to switch console buffers.  Required for
  285.     telnetd (Ford).  Change termcap_mode_start() and termcap_mode_end().
  286. 9    Mapping <C-S-Tab> on Win32 doesn't work correctly.
  287. 8    tmpnam() uses file in root of file system: "\asdf".  That doesn't work on
  288.     a Netware network drive.
  289. -    Re-install the use of $TERM and support the use of different terminals,
  290.     besides the console.
  291. 8    Change mouse behaviour to Windows-like (use shift-left mouse to extend
  292.     selected area).  Use some option to chose the Windows or Unix behaviour.
  293. -    Under NT, these abbreviations don't always work correctly (Shahar):
  294.     :ca head split ../h/%<.h
  295.     :ca srcf split ../cpp/%<.cpp
  296. -    When exiting, sends ^M^M^J to the console in raw mode (Webb).
  297.  
  298.  
  299. Amiga:
  300. 9    Expanding file name for syntax files doesn't work correctly? (Campbell).
  301. 8    Executing a shell, only one option for 'shell' is separated.  Should do
  302.     all options, using white space separation.
  303.  
  304.  
  305. Expanding (filenames and other things):
  306. 7    Should ":cd" for MS-DOS go to $HOME, when it's defined?
  307. 7    Make `command` expansion work for non-Unix systems.
  308.  
  309.  
  310. "Small" problems:
  311. 8    Fix enum problems for Ultrix: patches/seibert.enums.
  312. 8    CTRL-A can't handle big "long" numbers, they become negative.  Check for
  313.     "-" character, if not present, use unsinged long.
  314. 9    "@%" when file name not set, should just return empty string (and not give
  315.     an error message).
  316. 9    Check handling of overwriting of messages (start of edit(), in normal()).
  317.     Completely new policy?    Message history?
  318.     Wrong now: errors in c.syn cause wait_return for each message.
  319.     Very wrong: errors while redrawing cause endless loop.
  320.     "Vim normal.c", with an existing swap file, there is no hit-return for
  321.     the warning message.
  322.     Wrong: "!ls<CR>:pwd", output of "pwd" is removed by redraw.
  323.     Improvement:  When writing and reading a file (with ":wn" or 'autowrite'),
  324.     write the file messages after each other on the same line.    That's what Vi
  325.     does.
  326.     When exiting, with xterm changing screens, there is an extra empty line
  327.     (was included to get prompt in col 0 after error message).
  328.     Starting with "ex filename", file message is overwritten with "entering Ex
  329.     mode" message.
  330.     - Add flag to 'shortmess' to allow overwriting of all informative
  331.       messages, so the hit-return isn't shown that often.
  332.     - When termcap has been stopped, and swapping screens, should not do any
  333.       cursor positioning, only '\n' and '\r'.
  334. 9    On non-Unix systems it's possible to write over a readonly file, when
  335.     'readonly' is not set.  Need to check the file permissions explicitly.
  336.     Add a mch_writable(perm) function for each OS.
  337. 8    Make it possible to disable the special meaning of "#" in the first column
  338.     for ">>".
  339. 8    When doing ":qa", and there is a change in a buffer that is being edited
  340.     in another window, the current window will also be editing the buffer with
  341.     the change.  Should jump to the window with the changed buffer.
  342. 8    Should replace "screen_Columns" with "Columns", and use "new_Columns" for
  343.     the value to be used for Columns.  Same for "Rows".  Helps when using a
  344.     GUI with threads.
  345. 8    Add suspending with CTRL-Z at the "more" prompt, and when executing a long
  346.     script in do_cmdline().
  347. 8    When using 'hidden', many files will be open.  When Vim runs into the
  348.     maximum number of open files, error messages will appear.  Detect that
  349.     this problem is present, and close any hidden files that don't have
  350.     changes.
  351. 8    With 'viminfo' set such that the ".viminfo" file is written on a FAT
  352.     filesystem, an illegal file name may be created: ".vim".
  353. 8    "dd" on the last line of the file, causes the last but one line to be
  354.     redrawn.  Should not be necessary.
  355. 8    Using "gqj" near the last line of the window, makes the window scroll up,
  356.     even though this isn't necessary.
  357. 8    When backspacing, start of Insert should be adjusted.  E.g.,
  358.     "iasdf<Esc>aasdf<C-W><C-W>asdfasdfasdf<C-W>" stops at start of Insert,
  359.     while this is not logical.
  360. 9    In replace mode, when 'expandtab' and 'smarttab' are set, and inserting
  361.     Tabs, backspacing doesn't work correctly for Tabs inserted at the start of
  362.     the line (unless 'sts' is set too!).
  363. -    Try out the XFree 3.2A for Linux, check using Visual area on color-xterm
  364.     (Schueller).  Does this work properly?
  365. 9    incsearch is incorrect for "/that/<Return>/this/;//" (last search pattern
  366.     isn't updated).
  367. 9    '[ and '] should be set to start/end of line when using a linewise operator
  368.     (e.g., ":w").
  369. -    Redraw bug: After /pat, "." doesn't always redraw (when line gets longer?).
  370. -    These mappings don't work with the Win32 version: (Bradley)
  371.     nmap ,p {<Right>V}<Left>
  372.     nmap ,> ,p,>
  373.     vmap ,> >
  374. 8    Should be able to compile Vim in another directory, with $(srcdir) set to
  375.     where the sources are. Add $(srcdir) in the Makefile in a lot of places.
  376.     (Netherton)
  377. 7    For xterm, can get the title with "<Esc>[21t", no need to use X11 calls.
  378.     This returns "<Esc>]l<title><Esc>\".
  379. 8    Support ACLs (Access Control Lists, Security Descriptor in WinNT).    Check
  380.     with Windows NT or HPUX 10.*?  Add configure check for it, add code for
  381.     when overwriting a file (viminfo or ":w" command) that copies the ACL to
  382.     the new file.  Use info from Maximo: GetNamedSecurityInfo and
  383.     SetNamedSecurityInfo.
  384. 7    In xterm, recognize both vt100 and vt220 function keys f1-f4 and cursor
  385.     keys.  Change add_termcode() to not remove an existing entry for a name,
  386.     when it's needed.
  387. 8    core dump within signal function: gdb doesn't show stack backtrace!  option
  388.     to skip catch_signals()?
  389. 8    Pasting with the mouse in Replace mode inserts the text, instead of
  390.     overwriting, when it is more than one line.
  391. 8    When using search history, the trailing '/' or '?' needs to be changed
  392.     depending on the search command.  When there was no '/' or '?', add one, so
  393.     flags can be added easily?
  394. 8    CTRL-F at the end of the file, when 'so' is set, redraws twice.  When the
  395.     window is small (< 2 * 'so') it behaves differently.
  396. 8    CTRL-E and CTRL-Y don't work in small window when 'so' is 4
  397.     (Acevedo/in.226).  E.g., when using CTRL-E, window height 7, window might
  398.     actually scroll down when last line of buffer is displayed.
  399.     --> Remember if the previous command was "cursor follows screen" or
  400.     "screen follow cursor" and use this in cursupdate().
  401. 7    tilde_replace() can only handle "~/", should also do "~user/".
  402. 8    The "%" command doesn't work well inside "", unless 'cp' is set. (Cregut)
  403.     Handle matching () inside a string.
  404. 8    If writing to the swap file fails, should try to open one in another
  405.     directory from 'dir'.  Useful in case the file system is full.
  406. 8    Add 'o' flag to 'mouse'?
  407. 8    When dragging status line with mouse, sometimes a jump when first clicking
  408.     on the status line (caused by 'winheight').  Select window on button up,
  409.     instead of on button down.
  410. 9    term_console is used before it is set (msdos, Amiga).
  411. 8    There are often a few <CR> on a row sent to the screen, should not be
  412.     necessary.
  413. -    Text is scrolled up and down: (acevedo)
  414.      - set scrolloff to something >1 (i always use "set so=4")
  415.      - set the win. hegiht to scrolloff + 1  (i'd do ^W5_)
  416.      - load a file with scrolloff + 2 lines
  417.      - put the cursor in line scrolloff +1    (5G)
  418.      - if you move the cursor along the line (h, l, insert text, etc)
  419.      the text is crolled with each keystroke (once up, once down,...)
  420.      sometimes with <Esc> the text is scrolled up and down whitout stop!!!!
  421. 8    When performing incremental search, should abort searching as soon as a
  422.     character is typed.
  423. 8    Make CTRL-C on Unix generate a signal, avoid using select() to check for a
  424.     CTRL-C (it's slow).
  425. 8    When writing viminfo file, handle CTRL-J in filename (needs to be escaped
  426.     with CTRL-V). (Acevedo)
  427. 8    When starting Vim, switch terminal to RAW mode asap, so typeahead is
  428.     handled correctly (without the need for a <CR>).
  429. 8    Now that the swap file is hidden for DOS, it's difficult to delete.  Add a
  430.     command in Vim to delete a swap file?  Maybe something like "vim -r
  431.     -delete", which promts with a choice of swap files to delete?
  432. 8    Some commands don't use line numbers, but buffer numbers. '$'
  433.     should then mean the number of the last buffer.  E.g.: "4,$bdel".
  434. 9    Perl interface: Check for errors.  Vim crashes when using illegal window
  435.     number?
  436. 8    When the value of $MAKE contains a path, configure can't handle this.
  437.     It's an autoconf bug.  Remove the path from $MAKE to work around it.
  438. 7    Get error "*, \+ or \( operand could be empty" for pattern "\(.\)\1\{3}".
  439.     Don't check when compiling, check while matching.
  440. 7    When switching to Daylight Saving Time, Vim complains that a file has been
  441.     changed since last read.  Use another function to get the file time stamp?
  442.  
  443.  
  444. I can't reproduce these:
  445. -    With backupdir=~/tmp,/tmp nowritebackup nobackup patchmode=.smr and the
  446.     patchmode file exists, backup files in the tmp directory are left lying
  447.     around - they should be deleted! (Riehm)
  448. 9?    Crash when changing fonts in Athena (Hiebert).    gui_mch_set_scrollbar_pos
  449.     gets an "sb" argument that points to all zero entries...?
  450. 9?    Crash in Motif GUI, when pasting text with middle mouse button while in
  451.     insert mode.  SunOS 4.1.3 only? (Janssen).
  452. -    On Diamond Viper 132x43 mode crash on exit (John Lange)
  453.  
  454. [These have been reported for version 3.0, they may not appear in this version]
  455. -    MSDOS: After writing on a network the 'w' bit for others is set.
  456.  
  457.  
  458. Problems that will (probably) not be solved:
  459. -    Moving the cursor removes color in color-xterm.  This is a color-xterm
  460.     problem!  color-xterm ver. 6.1 beta 3 and later work properly.
  461. -    In zsh, "gvim&" changes the terminal settings.    This is a zsh problem.
  462.     (Jennings)
  463. -    Problem with HPterm under X: old contents of window is lost (Cosentino).
  464. -    Amiga: When using quickfix with the Manx compiler we only get the first 25
  465.     errors. How do we get the rest?
  466. -    Amiga: The ":cq" command does not always abort the Manx compiler. Why?
  467. -    Linux: A file with protection r--rw-rw- is seen readonly for others. The
  468.     access() function in GNU libc is probably wrong.
  469. -    MSDOS: When using smartdrive with write-back buffering, writing to a
  470.     readonly floppy will cause problems.  How to test for writable floppy
  471.     first?
  472. -    When doing a CTRL-Z and typing a command for the shell, while Vim is busy
  473.     (e.g. writing a file), the command for the shell is sometimes eaten by Vim,
  474.     because the terminal mode is changed from RAW to CBREAK.
  475. -    An old version of GNU tgoto can't handle the terminfo code for "AF".  The
  476.     "%p1" is interpreted as "%p" and "1", causing color not to be working.
  477.     Fix: Change the "%p1" in the "AF" and "AB" terminfo entries to "%p".
  478.     (Benzinger).
  479.  
  480.  
  481. ---------------------  extensions and improvements ----------------------
  482.  
  483. Documentation:
  484. -    Replace <a-z> by {a-z}, to avoid confusion with <C-S> as CTRL-S.
  485. -    Replace an <Esc> that is the escape key, not five characters, with {Esc}?
  486. -    Use tags sorting from ctags.c when making vim_tags for non-unix machines.
  487. -    Make a few sample menu sets (.gvimrc files) for novice vi users, novice
  488.     Vim users, C programmers, ...
  489. -    Check text editor compendium for vi and Vim remarks.
  490.  
  491.  
  492. Tests:
  493. -    Find a way to skip tests that can't be done.  For non-Unix systems, but
  494.     also for e.g. the Perl interface.
  495.  
  496.  
  497. Highlighting:
  498. 8    When using a cterm, and no ctermfg or ctermbg are defined, use start/stop
  499.     sequences.    Add remark in docs that :if 'term' == "term-name" should be
  500.     used.
  501. 8    When listing syntax items, try to sort the keywords alphabetically.  And
  502.     re-insert the [] if possible.
  503. 8    Make it possible to use color of text for Visual highlight group (like for
  504.     the Cursor).
  505. 8    Keep more context for syncing ("minlines" above topline?).    Otherwise
  506.     "CTRL-Y" takes a long time.  Make this settable with some command ":syn
  507.     sync context=1000 skip=10" (store state for 1000 lines, every 10 lines).
  508.     Store the context with the window, instead of the buffer.  Useful when
  509.     there are two windows on the same buffer.
  510. 8    Highlight non-printable characters with "SpecialChar", linked to
  511.     "Special".
  512. 8    Reduce the number of regexp in c.vim (for speed).
  513. 8    Add a flag to temporarily disable highlighting.  Set it while dragging the
  514.     status line.
  515. 8    Add an option to restrict the updating of syntax highlighting to the
  516.     current line while in Insert mode.
  517. 8    When guessing value of 'background', the syntax file has already been
  518.     loaded (from the .gvimrc).    After changing 'background', load it again?
  519. 8    When adding new syntax items after ":syn on", there should be a way to add
  520.     these items in a "contains=ALLBUT" list.  Could be done with a
  521.     "contained_in" keyword, such that the added item is only contained in
  522.     specified groups.
  523. 8    Add ":syn resync" command, to re-parse the whole file until the current
  524.     display position.
  525. 8    Should support "me" offset for a region start pattern.  To be used to
  526.     allow searching for the end pattern inside the match of the end pattern.
  527.     Example: syn region pikeXX start="([^{]" end=")" should work on "()".
  528. 8    When using a regexp for "contains=", should delay matching with it until
  529.     redrawing happens.  Set a flag when a group is added, check this flag when
  530.     highlighting starts.
  531. 7    Not possible now: Two regions that add up.  E.g. for this html:
  532.         <B> bold text <I> italic+bold text </B> italic text </I>
  533. 7    Make it possible to load a syntax file by setting an option, such that it
  534.     can be loaded by a modeline "vim: syntax=perl".
  535. 7    Add an explanation how a list of words can be used to highlight misspelled
  536.     words.
  537. 7    Should find a better way to parse the :syntax and :highlight commands.
  538.     Use tables or lists that can be shared by parsing for execution and
  539.     completion?
  540. 7    Add a few sets of colors (e.g. Borland Turbo C one).  With a menu to
  541.     select one of the sets.
  542. 8    Add offsets to sub-matches: "\(a*\) *"he=e1-1
  543.     'e' is end of match 'e1' is end of sub-match 1, 's2' is start of submatch
  544.     2, etc.
  545. 8    Add highlighting for 'number' (LineNr, or NonText).
  546. 8    Add more command line completion for :syntax.
  547. 8    Add more command line completion for :highlight.
  548. 8    In Insert mode, when there are typeahead characters, postpone the
  549.     highlighting (for "." command).
  550. 8    "dd" is slow in a C file.  Do profiling to find out why.
  551. 8    Syncing on comments isn't 100% correct when / / lines mix with / * and * /.
  552.     For example: What about a line that starts with / / and contains * /?
  553. 8    Ignore / * and    * / inside strings, when syncing.
  554. 8    Add possibility to sync on something else, when the syncing in one way
  555.     doesn't find match.  For HTML: When no <script> is found, try looking for
  556.     a '<'.    (Fleiner)
  557. 8    Replace the synchronizing method with a state machine specification.
  558.     Should be able to start at any line in the file, search forwards or
  559.     backwards, and use the result of matching a pattern.
  560. 7    Build a few more syntax files from the file "/usr/share/misc/vgrindefs":
  561.     ISP, LDL, Icon, ratfor.  And check "nedit/source/highlight.c".
  562. -    Make it possible to add "contains" items for all items in a group.    Useful
  563.     when extending an already existing syntax file.
  564. -    Allow the use of "blink".  Make a new attr when it's used.
  565. -    Add line-continuation pattern for non-syncing items too?
  566. -    Allow "\a" in end (and skip) pattern, use first sub-match of start
  567.     pattern.  To be used in e.g.: 'start="[/=+]" end="\a"'
  568.     No, can't use "\a", because "\b" means backspace.  Use "\#1" instead?
  569. 8    Add cursor-column highlighting.  Enable it with 'cursorcolumn' option, set
  570.     highlighting with "CursorColumn" group.  Useful for aligning text.
  571. -    Add possibility to highlight specific columns (for Fortran).
  572. -    Add possibility to highlight the whole line, including the right margin
  573.     (for comment blocks).
  574. -    Add 'hlmatch' option: List of flags:
  575.     'c': highlight match for character under the cursor.
  576.     'b': highlight the previous (, and its match.
  577.     'a': highlight all text from the previous ( until its match.
  578.          Also for {}, <>, etc.?
  579.     'e': highlight all braces without a match (slow?)
  580. 7    Make it possible to use all words in the tags files as Keyword.
  581.     Can also be done with a script (but it's slow).
  582. 7    Make it possible to call a ":" command when a match is found.  Should
  583.     allow for adding keywords from the text (e.g. variables that are set).
  584.     And allows for sections with different highlighting.
  585. 7    Add highlight group for commandline: "Commandline".  Make sure it
  586.     highlights the command line while typing a command, and any output from
  587.     messages.  And external commands?
  588.  
  589.  
  590. Built-in script language:
  591. 8    Add functions:
  592.         replace(lnum, string)    replace a text line (keeps marks)
  593.         append(lnum, string)    append a text line
  594.         prompt(string)    /* ask user to enter an argument */
  595.         window_number({expr})        return window number of buffer {expr}
  596.         stridx(bigstr, smallstr)  return index of first smallstr in bigstr
  597.         strridx(bigstr, smallstr)  return index of last smallstr in bigstr
  598.         sprintf(format, arg, ..) How to prevent a crash???
  599.         chistory(nr)            command history line
  600.         shistory(nr)            search history line
  601.         rhistory(nr)            redo history line
  602.         attributes()            return file protection flags "drwxrwxrwx"
  603.         call_perl(cmd)            call Perl and return string
  604.         getcwd()                current directory
  605. 8    Add ":let var[{expr}] = {expr}".
  606. 8    Add variable that contains the current/previous Visual mode?
  607. 8    ":unlet! var.." should not give an error message for not existing var.
  608. 8    ":unlet" should accept a list of variable names.
  609. 8    ":let &option" should list the value of the option.
  610. 8    ":echo $VIM" should use the internal value of $VIM.
  611. 7    Add synIDlist(), making the whole list of syntax items on the
  612.     stack available (separated with '\n').
  613. 8    Support 'noecho' option, to disable the echoing of commands of a mapping?
  614.     Maybe the output (non-error messages) too?    Or use the 'silent' option for
  615.     that?  Also use 'noecho' for ":redir" by default.
  616. 9    Make last message available "msg" variable (like "errmsg")?
  617. 9    Add a way to ignore errors, and continue with executing the ":if" or
  618.     ":while".  Use a variable or a command?  ":try"/":endtry"?  An option???
  619. 8    Add autocommand-event for when a variable is changed:
  620.         :au VarChanged <varname> <commands>
  621. 9    expressions: Add per-buffer and per-window variables:
  622.         b4:xxx    buffer 4 variable
  623.         w2:xxx    window 2 variable
  624.         f:xxx    local variable for a function
  625.         f5:xxx    meaningless?
  626. 8    Add command line completion for ":let" and ":if"
  627. 8    Add function that checks if a certain mapping is present.
  628. 8    Add possibility to define a function:
  629.         function example
  630.           echo "example: " a:1 a:2
  631.           return "OK"
  632.         endfunction
  633.     All user-defined functions start with 'u:'.
  634.     All arguments are 'a:<nr>'.  'a:0' is the number of arguments.
  635.     local variables start with 'f:'.
  636.     Use ":unfunction <name>" to remove the function again.
  637. 8    Add "has("gui_capable")", to check if the GUI can be started.
  638. 8    Add possibility to use variables like registers: characterwise (default),
  639.     linewise (when ending in '\n'), blockwise (when ending in '\001').    reg0,
  640.     rega, reg%, etc.  Add functions linewise({expr}), blockwise({expr}) and
  641.     charwise({expr}).
  642. 8    Support using '\' at the end of the line for continuation.    For all
  643.     :sourced files?
  644. 8    function to shorten a file name (like home_replace())?
  645. 7    Add variable that contains the return value of the last external command.
  646. 7    Make it possible to do any command on a string variable (make a buffer
  647.     with one line, containing the string).    Maybe add an (invisible) scratch
  648.     buffer for this?
  649.         result = scratch(string, command)
  650.         result = apply(string, command)
  651.         result = execute(string, command)
  652.     "command" would use <> notation.
  653. 7    Add function to generate unique number (date in milliseconds).
  654. 6    "g{if cond}" "g{while cond}", etc. in Normal mode, for mappings.
  655. 6    Like Lotus: <IF cond>commands<ELSE>commands<ENDIF> (in any mode, handle in
  656.     vgetorpeek())
  657.       ":map _a athe term is <IF $TERM=="xterm">xterm<ELSE>unknown<ENDIF>.<Esc>"
  658.       Use "<IF expression>commands<ELSE>commands<ENDIF>
  659. 6    Add catching errors for a block of commands ":try" - ":endtry"?  When
  660.     error has occurred, errmsg variable will have been set.
  661.  
  662.  
  663. Performance:
  664. 7l    do_cmdline(): Avoid that the command line is copied to allocated memory
  665.     and freed again later all the time.  For while loops, and for when called
  666.     with an argument that can be messed with.
  667.     Generic solution: Make a struct that contains a pointer and a flag that
  668.     indicates if the pointer should be freed when replaced.
  669. -    Further improve finding mappings in maphash[] in vgetorpeek()
  670. 9    Check out-of-memory for ":g/^/,$/s//@/" on 1000 lines.  Vim hangs because
  671.     of all the error messages.
  672. -    "out of memory" after deleting (1,$d) and changing (:%s/^/> /) a lot of
  673.     lines (27000) a few times.  Memory fragmentation?
  674. -    Do profiling on:
  675.     - :g/pat/normal cmd
  676.     - 1000ii<Esc>
  677.     - deleting 10Mbyte worth of lines (netscape binary)
  678.     - ":g/^/m0" on a 450Kbyte file.  And the "u".
  679.     - highlighting "~/vim/test/longline.tex", "~/vim/test/scwoop.tcl" and
  680.       "~/vim/test/lockup.pl".
  681. -    Use macros/duarte/capicua for profiling.  Nvi 1.71 is the fastest!
  682. -    When using a file with one long line (1Mbyte), then do "$hhhh", is still
  683.     very slow.  Avoid calling getvcol() for each "h"?
  684. -    Executing a register, e.g. "10000@@" is slow, because ins_typebuf has to
  685.     move the previous commands forward each time.  Pass count from
  686.     normal_cmd() down to do_execreg().
  687. -    Repeating insert "1000i-<Esc>" displays --INSERT-- all the time, because of
  688.     the <Esc> at the end.  Make this work faster (disable redrawing).
  689. -    Include turbo_loader patches, speeding up reading a file?
  690. -    Avoid calls to plines() for cursor line, use w_cline_height.
  691. -    When only need to redraw the status lines in status_redraw_all(), need to
  692.     update NOT_VALID to force the redraw.  Should detect that only the status
  693.     lines need to be redrawn (add STATUSLN between VALID and NOT_VALID?).
  694.  
  695.  
  696. Code size:
  697. -    Put getline() and cookie in a struct, so only one argument has to be
  698.     passed to do_cmdline() and other functions.
  699.  
  700.  
  701. Screen updating:
  702. -    screen_line():
  703.     - insert/delete character stuff.
  704.     - improve delete rest of line (spaces at end of line).
  705. -    When moving or resizing window, try to avoid a complete redraw (esp. when
  706.     dragging the status line with the mouse).
  707. -    When 'lazyredraw' set, don't echo :ex commands?  Need a flag to redraw when
  708.     waiting for a character.
  709. 6    When there are several windows, mark the current window in some way.  Use
  710.     a "*" or "^" in the status line, use a different color status line, or a
  711.     different color for the background of the window.
  712.  
  713.  
  714. Autoconf:
  715. 8    Should use acconfig.h to define prototypes that are used by autoheader.
  716. -    Autoconf: Use @datadir@ for the system independent files.  Make sure the
  717.     system dependend and system independed files are separated. (Leitner).
  718. -    Add autoconf check for waitpid()/wait4().
  719. -    Remove fcntl() from autoconf, all systems have it?
  720. -    Set default for 'dictionary', add search for dictionary to autoconf.
  721.  
  722.  
  723. Perl interface:
  724. 8    Rename typemap file to something else?
  725. 7    Make it possible to compile with non-ANSI C?
  726. 6    Tcl/Tk has the "load" command: load a shared library (.so or .dll).
  727.  
  728.  
  729. Shared libraries:
  730. 6    Add support for loading shared libraries, and calling functions in it.
  731.         :libload internal-name libname
  732.         :libunload internal-name
  733.         :liblist
  734.         :libcall internal-name function(arg1, arg2, ...)
  735.         :libcall function(arg1, arg2, ...)
  736. 6    Have a look on how Perl handles loading dynamic libraries.
  737.  
  738.  
  739. Tags:
  740. 9    Shorten path for :tselect.  See patch from Kahn: patches/kahn.tag.  Or
  741.     skip a part in the middle of the path, instead of at the start?
  742. 8    When output of ":tselect" is long, getting the more-prompt, should be able
  743.     to type the tag number directly.
  744. 8    Add "**" wildcard from 'path' to 'tags': search a tree for tags files.
  745.     And some way to search directories upwards in the tree:
  746.     "./.../tags;$HOME", where the part after ';' tells where to stop.
  747. 7    Add an option to make ":tag ident" turn into ":tselect" when there is more
  748.     than one matching tag.
  749. 7    Make output of ":tselect" a bit nicer.  Use highlighting?
  750. 7    Highlight the "tag 1 of >2" message.  New highlight group, or same as "hit
  751.     bottom" search message.
  752. 7    When using ":tag" at the top of the tag stack, should add another entry,
  753.     so CTRL-T can bring you back to where you are now AND to where you were
  754.     before the previous ":tag" command. (Webb)
  755. 7    Check out cscope and its use in Nvi.
  756. 7    Support additional tag fields in ":tag" command, like Elvis 2.x.
  757. 7    When using CTRL-] on someClass::someMethod, separate class from method and
  758.     use ":ta class:someClass someMethod".
  759.     Include C++ tags changes (Bertin).    Change "class::func" tag into "func"
  760.     with "class=class"?  Docs in oldmail/bertin/in.xxx.
  761. 7    Add ":tagargs", to set values for fields:
  762.         :tagargs class:someclass file:version.c
  763.         :tagargs clear
  764.     These are then the default values (changes the order of priority in tag
  765.     matching).
  766. 7    Support for "gtags" program?  With ":rtag" command?  See ~/src/global".
  767. 7    Disallow changing the buffer for commands from a tags file.  Also for
  768.     commands from a local .vimrc?  Sort of strict secure mode.
  769. 7    Support "col:99" extra field, to position the cursor in that column.  With
  770.     a flag in 'cpoptions' to switch it off again.
  771. 7    Better support for jumping to where a function or variable is used.  Use
  772.     the id-utils, with a connection to "gid" (Emacs can do it too).  Add
  773.     ":idselect", which uses an "ID" database (made by "mkid") like "tselect".
  774. 6    Don't store the search pattern from a tag command in the search history
  775.     (with an option)?
  776.  
  777.  
  778. Win32 GUI:
  779. 8    Add "Edit/Select all" menu entry.
  780. 8    Should fix the shell stuff.  Look at how Emacs does it:
  781.     http://www.cs.washington.edu/homes/voelker/ntemacs.html.
  782. 8    Dropping a file on a gvim that edits a modified buffer splits the window.
  783.     Make an option to replace the current file (use ":e" instead of ":sp")?
  784.     When dropping multiple files, display the first one and adjust the
  785.     arglist.
  786. 7    Keep the console for external commands open.  Don't wait for a key to be
  787.     hit.  Re-open it when the user has closed it anyway.  Or use a prepended
  788.     command: ":nowait {cmd}", or ":quiet", which executes {cmd} without any
  789.     prompts.
  790. 7    Should be able to set an option so that when you double click a file that
  791.     is associated with Vim, you can either get a new instance of Vim, or have
  792.     the file added into an already running Vim.
  793. 8    Support mode for Windows way of using the mouse: Left as it is,
  794.     shift-left to extend a selection, right to bring up a cut/copy/paste menu.
  795.     Typing replaces selected text.
  796.  
  797.  
  798. GUI:
  799. 8    When NO_CONSOLE is defined, more code can be excluded.
  800. 8    Visual highlighting should keep the same font (bold, italic, etc.).
  801. 8    Add possibility to set pointer shape (for different modes).
  802. 8    Add flag to 'guioptions' to not put anything in the clipboard at all?
  803. 8    Should take font from xterm where gvim was started (if no other default).
  804. 8    Include patches from wittig, for AIX and dtterm clipboard stuff.
  805. 8    Should support a way to use keys that we don't recognize yet.  Add a
  806.     command that adds entries to special_keys somehow.    How do we make this
  807.     portable (X11, Win32, ..)?
  808.     At least add the <kPlus> key: keypad + key (different from normal + key).
  809. 7    X11: Is it possible to free allocated colors, so that other programs can
  810.     use them again?  Otherwise, allow disabling allocating the default colors.
  811. 6    Big change: Move GUI to separate program "vimgui", to make startup of vim a
  812.     lot faster, but still be able to do "vim -g" or ":gui".
  813. 7    Should support multi-column menus.
  814. 6    Make it possible to "drag the text" (grab a character and move it
  815.     up/down).  Use Alt-LeftMouse for this?  (Goldfarb)
  816. 7    Add (some of) the 'mousepointer' patch from Ralston.
  817. 7    Add option to set the position of the window on the screen.  'windowpos',
  818.     which has a value of "123,456": <x>,<y>.
  819. 6    Make it easy to specify a shortcut (key) for a menu item.
  820. 7    Make it possible to set sub-menu priorities.
  821. 7    Add toolbar?  With 't' flag in 'guioptions' and ":tool" command.  Or just
  822.     use ":menu" command with a single menu name?  Don't mix with menu bar, that
  823.     breaks the Motif style guidelines.    Make it possible to put the toolbar on
  824.     top, left, right and/or bottom of the window?  Allows for softkey-like use.
  825. 6m    Separate the part of Vim that does the editing from the part that runs the
  826.     GUI.  Communicate through a pseudo-tty.  Vim starts up, creates a
  827.     pty that is connected to the terminal.    When the GUI starts, the pty is
  828.     reconnected to the GUI process.  When the GUI stops, it is connected to
  829.     the terminal again.  Also use the pty for external processes, it looks
  830.     like a vt100 terminal to them.    Vim uses extra commands to communicate GUI
  831.     things.
  832. -    Motif steals <F10> from us, to pop up menus with the keyboard.    How do we
  833.     get it back if we want it?
  834. -    Paste in Insert mode should not do autowrap etc.  Or maybe this should be
  835.     changeable with an option?
  836. -    Option/resource to use pointer focus from the mouse to select the current
  837.     Vim window.
  838. -    Put a nice picture in the icon (but how do we do that?).
  839. -    Should add option for where to put the "Help" menu: like Motif at the far
  840.     right, or with the other menus (but still at the right).
  841. 7    Add "Buffers" menu, list of (hidden) buffers.
  842. -    Add menu item to "Keep Insert mode". More generally: Include a nice way to
  843.     change options.
  844. 7    When using a pseudo-tty Vim should behave like some terminal (vt52 looks
  845.     simple enough). Terminal codes to/from shell should be translated.
  846. 8    ":mkgvimrc" command, that includes menus.
  847. -    Would it be useful to be able to quit the GUI and go back to the terminal
  848.     where it was started from?
  849. -    Add a file selector (Tsirkin has one for Athena).
  850. 7    Add ":confirm" pre-command to Ex commands: pop up a requester for changed
  851.     files.    Also ":browse" to show a file selector. (Webb)
  852.     See "patches/webb.browse.diff".
  853.     Requester in Motif is called MessageBox.
  854.     Make two functions to handle this: one for reading and one for writing
  855.     files (gui_mch_open() and gui_mch_saveas()?).
  856.     Also: Add some function to expression evaluation for browsing and
  857.     confirmation.
  858. 7    Add ":request" command, to pop up a user-defined requester.  The result
  859.     would go in a variable.
  860.  
  861.  
  862. Autocommands:
  863. 9    ":au {event} *" should also be executed for "No File" buffers.
  864. 8    Add autocommands to ":mkvimrc".
  865. 8    Autocommands should not change registers.  And anything else?
  866. 5    Add option that specifies extensions which are to be discarded from the
  867.     file name.  E.g. 'ausuffix', with ".gz,.orig".  Such that file.c.gz will
  868.     trigger the "*.c" autocommands.  (Belabas)
  869. 7    Add something to break the autocommand and what follows.  Useful for a
  870.     "BufWritePre" that wants to avoid writing the file.
  871. -    Allow the use of environment variables in the autocmd pattern, e.g.,
  872.         :au BufWritePost $VIM/vimrc :so $VIM/vimrc
  873. 8    Detect textmode after executing the autocommands, otherwise the .gz
  874.     autocommands don't work for MS-DOS.  Needs to be able to remove the ^Ms at
  875.     the end of each line.  Alternative: don't use a filter command, write the
  876.     file, gunzip, set nobin, delete the lines, read the file.
  877. -    Add events to autocommands:?
  878.     NormalEnter  - Entering Normal mode.
  879.     InsertEnter  - Entering Insert mode.
  880.     ReplaceEnter - Entering Replace mode.
  881.     CmdEnter     - Entering Cmdline mode.
  882.     VisualEnter  - Entering Visual mode.
  883.     losefocus     - Losing window focus.  (needs to be queued?)
  884.     getfocus     - Getting window focus.  (needs to be queued?)
  885.     SearchPost   - After doing a search command (e.g. to do "M").
  886.     BufDeletePre - When a buffer is about to be deleted (to be able to remove
  887.                    its name from a buffer menu).
  888.     BufModified  - When a buffer becomes modified, or unmodified (for putting
  889.                    a [+] in the window title).
  890. -    Add autocommand to be executed every so many seconds?  For writing the
  891.     file now and then ('autosave').
  892.                                   *'autosave'* *'as'* *'noautosave'* *'noas'*
  893.     'autosave' 'aw' number    (default 0)
  894.             Automatically write the current buffer to file N seconds after the
  895.             last change has been made and when |modified| is still set.
  896.             Default: 0 = do not autosave the buffer.
  897.  
  898.  
  899. Insert mode expansion:
  900. -    Add CTRL-X command in insert mode like CTRL-X CTRL-N, that completes WORDS
  901.     instead of words.
  902. -    Make it possible to search include files in several places.  Use the
  903.     'path' option?    Can this be done with the dictionary completion (use
  904.     wildcards in the file name)?
  905. -    Make CTRL-X CTRL-K do a binary search in the dictionary (if it's sorted).
  906. -    Speed up CTRL-X CTRL-K dictionary searching (don't use a regexp?).
  907. -    Set a mark at the postition where the match was found (file mark, could be
  908.     in another file).
  909. -    Add 'complete' option: Which completion to be done for CTRL-N/CTRL-P in
  910.     insert mode: 'w' for other windows, 'b' for other buffers, 'd' for
  911.     dictionaries (Webb).
  912. -    Add CTRL-A command in CTRL-X mode: show all matches.
  913. -    Add command in CTRL-X mode to add following words to the completed string
  914.     (e.g. to complete "Pointer->element" with CTRL-X CTRL-P CTRL-W CTRL-W)
  915. -    CTRL-X CTRL-F: Use 'path' to find completions.
  916. -    Add option 'isexpand', containing characters when doing expansion (so that
  917.     "." and "\" can be included, without changing 'iskeyword'). (Goldfarb)
  918.  
  919.  
  920. Command line completion:
  921. -    Add command line completion for ":ilist" and friends, show matching
  922.     identifiers (Webb).
  923. 6    Add command line completion with CTRL-X, just like Insert mode completion.
  924.     Useful for ":s/word/xx/".
  925. -    Add command to go back to the text as it was before completion started.
  926.     Also to be used for <Up> in the command line.
  927. -    Add 'wildlongest' option: Key to use to find longest common match for
  928.     command line completion (default CTRL-L), like 'wildchar'. (Cregut)
  929.     Also: when there are several matches, show them line a CTRL-D.
  930. -    With command line completion after '%' and '#', expand current/alternate
  931.     file name, so it can be edited.
  932.  
  933.  
  934. Insert mode:
  935. -    In Insert mode (and command line editing?): Allow undo of the last typed
  936.     character.    This is useful for CTRL-U, CTRL-W, delete and backspace, and
  937.     also for characters that wrap to the next line.
  938. -    Use CTRL-G in Insert mode for an extra range of commands, like "g" in
  939.     Normal mode.
  940. 8    Make it possible to toggle 'paste' in Insert mode.
  941. -    Make 'paste' work without resetting other options, but override their value.
  942.     Avoids problems when changing files and modelines or autocommands are used.
  943. -    When typing CTRL-V and a digit higher than 2, only expect two digits.
  944.  
  945.  
  946. 'cindent', 'smartindent':
  947. 8    Two labels below each other, second one is not handled correctly:
  948.     {
  949.     label1:
  950.         label2:
  951.     }
  952. 8    Handle a comment halfway the line: "if (/* foo */ bar)".    Adjust
  953.     isterminated().  Or: always search backwards through the line, and skip
  954.     from a "(" to the matching ")".  Also when the line does not start with
  955.     "if" or "while).  Try this out on function calls split over several lines:
  956.          int fooRet = foo(pBar1, false /*fKillTheBar*/,
  957.              true /*fPreserveTheBar*/, 3 /*nTimes*/, false /*fDieOnFailure*/);
  958. 8    This is indented wrong:
  959.         if (1) {i += 4;}
  960.             where_am_i;
  961.         return 0;
  962. 6    Make indenting more flexible, like syntax highlighting.
  963. -    "[p" and "]p" should use 'cindent' code if it's on (only for the first
  964.     line).
  965. -    Add option to 'cindent' to set indent for comments outside of {}?
  966. -    Make a command to line up a comment after a code line with a previous
  967.     comment after a code line.    Can 'cindent' do this automatically?
  968. 7    Add 'j' flag to 'formatoptions': Remove comment leader when joining lines.
  969. -    Add setting for K&R paren style?  Should be used for this:
  970.         case xx: {
  971.                     some_cmd;
  972.         }
  973. -    formatting of struct/array inits:
  974.     The lines used to initialise the struct or array above should not be
  975.     considered 'continuation' lines just because the previous one does not end
  976.     with ';'.  If you go back line by line I think it should be possible to
  977.     tell the difference.  If you find a line that ends in ';', then it's OK to
  978.     have continuation lines.  If you find a "{", and the character before it
  979.     (not counting space & comments) is either ',' or '=', then there should
  980.     not be continuation lines.    If the character before the "{" is another
  981.     "{", then you have to check before that one too.
  982. -    "case a: case b:" (two case statements in one line) aligns with the second
  983.     case, but should use one 'sw' for indent. (Webb)
  984. -    When 'cindent'ing a '}', showmatch is done before fixing the indent.  It
  985.     looks better when the indent is fixed before the showmatch. (Webb)
  986. -    Add option to make indenting work in comments too (for commented-out
  987.     code), unless the line starts with "*".
  988. -    Don't use 'cindent' when doing formatting with "gq"?
  989. -    When formatting a comment after some text, insert the '*' for the new line
  990.     (indent is correct if 'cindent' is set, but '*' doesn't get inserted).
  991. -    Make smartindenting configurable. Add 'sioptions', e.g. '#' setting the
  992.     indent to 0 should be switched on/off.
  993. -    For smartindent: When typing 'else' line it up with matching 'if'.
  994. -    'smartindent': allow patterns in 'cinwords', for e.g. TeX files, where
  995.     lines start with "\item".
  996. -    {
  997.         func(/*comment*/);
  998.         func2();        /* this line is not indented correctly */
  999.     }
  1000. -    Support this style of comments (with an option): (Brown)
  1001.         /* here is a comment that
  1002.         is just autoindented, and
  1003.         nothing else */
  1004.  
  1005.  
  1006. Text objects:
  1007. 8    Add test for text object commands "aw", "iW", etc.
  1008. 6    Ignore comment leaders for objects.  Make "das" work in reply-email.
  1009. 5    Make it possible to use syntax group matches as a text object.    For
  1010.     example, define a "ccItem" group, then do "da<ccItem>" to delete one.
  1011.     Or, maybe just define "dai", delete-an-item, to delete the syntax item the
  1012.     cursor is on.
  1013.  
  1014.  
  1015. Visual mode:
  1016. 8    When selecting with the mouse, make a difference between selecting the
  1017.     last character of the line and selecting the empty space after it.    In the
  1018.     last case a <CR> should be included (like xterm).
  1019. 7    In Visual block mode, need to be able to define a corner on a position
  1020.     that doesn't have text?  Also: when using the mouse, be able to select
  1021.     part of a TAB.
  1022. 7    With blockwise Visual mode and "c" command, insert same text in every line.
  1023.     With "r" replace all chars in visual area witht the next char. With "C"
  1024.     replace each line with entered text (go to next line with <CR>).  With "i"
  1025.     insert the same text in front of the block in each line, with "a" append
  1026.     after every line.
  1027. 7    For Visual mode: Command to do a search for the string in the marked area.
  1028.     Only when less than two lines. Use "g/" and "g?".
  1029. 7    Filtering a block should only apply to the block, not to the whole lines.
  1030.     When the number of lines is increased, add lines. When decreased, padd with
  1031.     spaces or delete? Use ":`<,`>" on the command line.
  1032. 7    CTRL-V :s should substitute only in the block.
  1033. 7    CTRL-V > should move the block, not whole lines.
  1034. 7    CTRL-I and CTRL-O should work in Visual mode, but only jump to marks in the
  1035.     current buffer.
  1036. 7    CTRL-A and CTRL-X should increase/decrease all numbers in the Visual area.
  1037. 7    "gCTRL-G" should count the number of characters in the Visual area.
  1038. 6    "I" should insert the same text in front of the selected text, in each
  1039.     line.
  1040. 6    "A" should append the same text after the selected text, in each line.
  1041. 6    "p" should replace the Visual area with the contents of a register (swap
  1042.     register contents with Visual text).
  1043. 6    ":'<,'>source" should read the selected lines and ":source" them.
  1044. 6    When in blockwise visual selection (CTRL-V), allow cursor to be placed
  1045.     right of the line. Could also allow cursor to be placed anywhere on a TAB
  1046.     or other special character.
  1047. 6    Add commands to move selected text, without deselecting.
  1048. 6    Add visual command to swap selected text with unnamed register.
  1049. 6    Add visual command to do rot13 encoding.
  1050.  
  1051.  
  1052. Incsearch:
  1053. -    Add a limit to the number of lines that are searched for 'incsearch'?
  1054. -    When incsearch used and hitting return, no need to search again in many
  1055.     cases, saves a lot of time in big files. (Slootman wants to work on this?)
  1056.     When not using special characters, can continue search from the last match
  1057.     (or not at all, when there was no match).  See oldmail/webb/in.872.
  1058. -    With incsearch, use CTRL-N/CTRL-P to go to next/previous match, some other
  1059.     key to copy matched word to search pattern (Alexander Schmid).
  1060.  
  1061.  
  1062. Quickfix:
  1063. 8    Quickfix mode: column number should be interpreted with an 8-character
  1064.     tabstop.
  1065. 8    Allow a range for the ":clist" command.
  1066. 8    When doing ":cn" which jumps in another file, which is already displayed
  1067.     in another window, jump to that window (instead of loading the file into
  1068.     the current window, so you end up with two windows editing the same file).
  1069. 7    Add ":cnfile" command: go to first error in next file.
  1070. 6    Add parsing of multi-line error messages, where one of the lines contains a
  1071.     "^" at the column number (Campbell).  Maybe with a Perl script?
  1072. 6    Add parsing of change-directory lines in 'errorformat', for gmake:
  1073.       make[1]: Entering directory `/tmp/tools/tools-2.16/example'
  1074. 5    Add joining of lines to 'errorformat' at "\n".
  1075.  
  1076.  
  1077. More advanced repeating commands:
  1078. -    Add "." command for visual mode: redo last visual command (e.g. ":fmt").
  1079. -    Add "." command after operator: repeat last command of same operator. E.g.
  1080.     "c." will repeat last change, also when "x" used since then (Webb).
  1081.     "y." will repeat last yank.
  1082.     Also: keep history of Normal mode commands, add command to list the history
  1083.     and/or pick an older command.
  1084.  
  1085.  
  1086. Command line history:
  1087. 7    Add ":history" command for command lines and search patterns.
  1088. -    Add "KeyWasTyped" flag: It's reset before each command and set when a
  1089.     character from the keyboard is consumed. Value is used to decide to put a
  1090.     command line in history or not. Put line in history if it didn't completely
  1091.     resulted from one mapping.
  1092.  
  1093.  
  1094. Mappings and Abbreviations:
  1095. 8    ":unab" gives "no such mapping" emsg.  That's confusing.
  1096. 8    Allow mapping of CTRL-C in Visual mode (for Windows).
  1097. 8    In the output of ":map", highlight the "*" to make clear it's not part of
  1098.     the rhs.
  1099. 7    When someone tries to unmap with a trailing space, and it fails, try
  1100.     unmapping without the trailing space.  Helps for ":unmap xx | unmap yy".
  1101. 7    Local mappings for a buffer. Useful for autocmds. Count for map command is
  1102.     buffer number. ":0map bar foo" = enter mapping for current buffer.
  1103.     Same for abbreviations.
  1104. 7    Make it possible to map 'wildchar', but only when it's a special character
  1105.     (like CTRL-E).  Currently it's only recognized when typed.  Useful for
  1106.     mapping a key to do something and then completion.
  1107. -    Add mappings that take arguments.  Could work like the ":s" command.  For
  1108.     example, for a mouse escape sequence:
  1109.         :mapexp  <Esc>{\([0-9]*\),\([0-9]*\);    H\1j\2l
  1110. -    Make it possible to have an empty rhs for a mapping in a vimrc file.
  1111. -    Add the possibility to enter mappings which are used whenever normal text
  1112.     could be enetered.  E.g., for "f" command.  But not in Normal mode.  Sort
  1113.     of opposite of 'langmap'.  Use ":tmap" command?
  1114. -    Make it possible to include a <Nul> in the lhs and rhs of a mapping.
  1115. -    Add command to repeat a whole mapping ("." only repeats the last change in
  1116.     a mapping).  Also: Repeat a whole insert command, including any mappings
  1117.     that it included.  Sort-of automatic recording?
  1118. -    Make it possible to undo all the commands from a mapping, including a
  1119.     trailing unfinished command, e.g. for ":map K iX^[r".
  1120. -    Add an option to ":map" that makes it display the special keys in
  1121.     <> notation (e.g. <CR> instead of ^M).    Or just always do this?
  1122. -    Include an option (or flag to 'cpoptions') that makes errors in mappings
  1123.     not flush the rest of the mapping (like nvi does).
  1124. -    Use context sensitiveness of completion to switch abbreviations and
  1125.     mappings off for :unab and :unmap.
  1126. 6    When using mappings in Insert mode, insert characters for incomplete
  1127.     mappings first, then remove them again when a mapping matches.    Avoids
  1128.     that characters that are the start of some mapping are not shown until you
  1129.     hit another character.
  1130. 5    completion of existing mappings for ":unmap", ":unab", etc.
  1131. -    Add optional <Number> argument for mappings:
  1132.     :map <Number>q             ^W^W<Number>G
  1133.     :map <Number>q<Number>t  ^W^W<Number1-1>G<Number2>l
  1134.     :map q<Char>            :s/<Char>/\u\0/g
  1135.     Or implicit:
  1136.     :map q                        <Register>d<Number>$
  1137. -    Add mappings for replace mode: ":rmap".  How do we then enter mappings for
  1138.     non-replace insert mode?
  1139. -    Add separate mappings for Visual-character/block/line mode?
  1140. -    Add ":alias" command, like ":cmap" or ":cabb", but only for the command name
  1141.     and it isn't displayed.  Or add the possibility to define a function (with
  1142.     arguments range, forceit, etc.).
  1143. 7    Better: Define an alias like ":substitute": ":alias /{pattern}/
  1144.     /{replacement}/".  Match with {pattern} after parsing the address.    Use
  1145.     "\1" to be able to define arguments.  Also need ":unalias".
  1146. 6    Same for Normal mode commands?    Would allow mappings with arguments.
  1147. -    Add 'mapstop' command, to stop recursive mappings.
  1148. -    List mappings that have a raw escape sequence both with the name of the key
  1149.     for that escape sequence (if there is one) and the sequence itself.
  1150. -    List mappings: Once with special keys listed as <>, once with meta chars as
  1151.     <M-a>, once with the byte values (octal?). Sort of "spell mapping" command?
  1152. -    When entering mappings: Add the possibility to enter meta keys like they are
  1153.     displayed, within <>: <M-a>, <~@> or <|a>.
  1154. -    Allow multiple arguments to :unmap.
  1155. -    Error message for ambiguous mapping: Include the arguments.
  1156. -    Command to show keys that are not used and available for mapping
  1157.     ":freekeys".
  1158. -    Allow any character except white space in abbreviations lhs (Riehm).
  1159.  
  1160.  
  1161. Searching:
  1162. 8    "/:/e+1" gets stuck on a match at the end of the line.    Do we care?
  1163. -    Add <group-name> flag for search string, to restrict the search to a
  1164.     specific highlight group.  Use "/./<Group>" to find the start of a group.
  1165. -    Add flags to search command:
  1166.     i    ignore case
  1167.     u    use case
  1168.     p    use Perl regexp syntax
  1169.     v    use Vi regexp syntax
  1170.     Perl uses these too:
  1171.     e    evaluate the right side as an expression (Perl only)
  1172.     m    multiple line expression
  1173.     o    compile only once (Perl only)
  1174.     s    single line expression
  1175.     x    extended regexp
  1176.     When used after ":g" command, backslash needed to avoid confusion with the
  1177.     following command.
  1178.     Add 'searchflags' for default flags (replaces 'gdefault').
  1179. 7    Use T-search algorithm, to speed up searching for strings without special
  1180.     characters.  See C't article, August 1997.
  1181. -    Add 'fuzzycase' option, so that case doesn't matter, and '-' and '_' are
  1182.     equivalent (for Unix filenames).
  1183. -    Add 'v' flag to search command: enter Visual mode, with the matching text as
  1184.     Visual area. (variation on idea from Bertin)
  1185. -    Searching: "/this//that/" should find "that" after "this".
  1186. -    Add flag to search command to forget it for "n", e.g. "/foo/f".  Also for
  1187.     ":s/pat//f".  Also add flag to 'r'emember (for mappings).
  1188. -    Add command to display the current search pattern, substitute pattern and
  1189.     last used pattern. (Margo) Maybe make it accessible through a register ("/
  1190.     for search string)?  Also make "/ register writable (Maxi)
  1191. -    Add global search commands: Instead of wrapping at the end of the buffer,
  1192.     they continue in another buffer. Use flag after search pattern:
  1193.     a    for the next file in the argument list
  1194.     f    for file in the buffer list
  1195.     w    for file edited in a window.
  1196.     e.g. "/pat/f". Then "n" and "N" work through files too. "f" flag also for
  1197.     ":s/pat/foo/f"??? Then when 'autowrite' and 'hidden' are both not set, ask
  1198.     before saving files: "Save modified buffer "/path/file"? (Yes/Hide/No
  1199.     Save-all/hide-All/Quit) ".
  1200. -    Special characters in patterns:
  1201.     \A    beginning of string (for multi-line matching)
  1202.     \Z    end of string (idem)
  1203.     \d    digit character
  1204.     \D    non-digit character
  1205.     Inside []:
  1206.     \012  octal character
  1207.     \<BS> special character
  1208. 7    When searching with 'n' give message when getting back where the search
  1209.     first started. Remember start of search in '/ mark.
  1210. 7    Add option that scrolls screen to put cursor in middle of screen after
  1211.     search always/when off-screen/never.  And after a ":tag" command.  Maybe
  1212.     specify how many lines below the screen causes a redraw with the cursor in
  1213.     the middle (default would be half a screen, zero means always).
  1214. 6    Add \! to search patterns: matches string that does not match previous
  1215.     atom.
  1216. 6    Use \& for "and", like \| for "or".
  1217. 6    Support multiple search buffers, so macros can be made without side effects.
  1218. 7    From xvim: Allow a newline in search patterns (also for :s, can delete
  1219.     newline).  Add BOW, EOW, NEWL, NLORANY, NLBUTANY, magic 'n' and 'r', etc.
  1220.     [not in xvim:] Use "\s" for "space" characters (like Perl): space, tab,
  1221.     newline, etc.  Add option to switch on matches crossing ONE line boundary.
  1222. 7    Add register for '?' and '/' commands? (yank_buf()).
  1223. 7    In regexp.c: "\^" after "\|" or "\(" is start of line, and "\$" before "\|"
  1224.     and "\)" is end of line.
  1225. -    Change request: "/^$\|the" finds both empty lines and "the", but "/the\|^$"
  1226.     doesn't.  Make '^' after "\|" also a special character?
  1227. -    In regexp, allow use of special characters with "\xnn" notation?
  1228.  
  1229.  
  1230. Undo:
  1231. 8    Make undo more memory-efficient: Compare text before and after change,
  1232.     only remember the lines that really changed. When calling u_save with a
  1233.     single line, don't save it if line was already saved for undo.
  1234. -    For u_save() include the column number. This can be used to set '[ and '].
  1235.     And in the future the undo can be made more efficient (Webb).
  1236. -    In out-of-memory situations: Free allocated space in undo, and reduce the
  1237.     number of undo levels (with confirmation).
  1238. -    Instead of [+], give the number of changes since the last write: [+123].
  1239.     When undoing to before the last write, change this to a negative number:
  1240.     [-99].
  1241. -    With undo with simple line delete/insert: optimize screen updating.
  1242. -    When executing macro's: Save each line for undo only once.
  1243. -    Store undo info in a file that survives until the next edit.  Then it's
  1244.     possible to undo to before the current editing session.  Combined with
  1245.     viminfo?
  1246. -    When doing a global substitute, causing almost all lines to be changed,
  1247.     undo info becomes very big. Put undo info in swap file??
  1248.  
  1249.  
  1250. Swap (.swp) files:
  1251. -    Each swap file should include a flag that shows if the swapfile contains
  1252.     any changes. Report this when giving the ATTENTION message.
  1253. -    When the edited file is a symbolic link, use the "to" name for the swap
  1254.     file.
  1255. -    Add an option to create a swap file only when making the first change to
  1256.     the buffer.  (Liang)  Or only when the buffer is not read-only.
  1257. -    Add option to set "umask" for backup files and swap files (Antwerpen).
  1258.     'backupumask' and 'swapumask'?    Or 'umaskback' and 'umaskswap'?
  1259. -    When editing a readonly file, don't use a swap file but read parts from the
  1260.     original file.
  1261. -    When the edited file is a symlink, try to put the .swp file in the same dir
  1262.     as the actual file. Adjust FullName().    Also try to make the name of the
  1263.     backup file the same as the actual file.
  1264.  
  1265.  
  1266. Viminfo:
  1267. 7    Can probably remove the code that checks for a writable viminfo file,
  1268.     because we now do the chown() for root, and others can't overwrite someone
  1269.     else's viminfo file.
  1270. 6    Store a snapshot of the currently opened windows.  So that when quitting
  1271.     Vim, and then starting again (without a file name argument), you see the
  1272.     same files in the windows.
  1273. -    Make marks present in .viminfo usable as file marks: Display a list of
  1274.     "last visited files" and select one to jump to.
  1275. -    Add jumplist to viminfo file, so that CTRL-O can be used.
  1276. -    MSDOS: look for .vimrc, helpfile and .viminfo in argv0 dir. (Ferenc)
  1277.  
  1278.  
  1279. Modelines:
  1280. -    When an option value is coming from a modeline, do not carry it over to
  1281.     another edited file?  Would need to remember the value from before the
  1282.     modeline setting.
  1283. -    Allow ":doauto BufRead x.cpp" in modelines, to execute autocommands for
  1284.     .cpp files.
  1285. -    Support the "abbreviate" command in modelines (Kearns).  Careful for
  1286.     characters after <Esc>, that is a security leak.
  1287. -    Disallow setting the 'shell', 'makeprg', 'formatprg' or 'keywordprg' options
  1288.     in a modeline???  Also 'secure' and 'exrc' should be forbidden.
  1289. -    Make it possible to set options from modelines only temporarily for that
  1290.     file (needs a stack for saving old options).
  1291. -    Add option setting to ask user if he wants to have the modelines executed or
  1292.     not.  Same for .exrc in local dir.
  1293.  
  1294.  
  1295. External commands:
  1296. 4    Set separate shell for ":sh", piping "range!filter", reading text "r !ls"
  1297.     and writing text "w !wc". (Deutsche)  Allow arguments for fast start (e.g.
  1298.     -f).
  1299. 4l    Allow direct execution, without using a shell.
  1300. 4w    Run an external command in the background.  But how about I/O in the GUI?
  1301.     Careful: don't turn Vim into a shell!
  1302. -    Add 'echo' option: When off don't echo shell commands.
  1303.  
  1304.  
  1305. Command-line editing:
  1306. -    Korn-shell or tcsh like command line editing (like editing a single line
  1307.     with vi). Use :cmap! for mappings. Can be implemented like a buffer
  1308.     containing command lines.  Use CTRL-O instead of <Esc>, to remain
  1309.     vi-compatible?  See remarks from Steve (oldmail/kirkendall/in.012).
  1310. -    Add 'cedit' option like Nvi: editing commandline in a window?
  1311.     NO!  It's too confusing (e.g. when using ^W^W to go to another window, when
  1312.     doing ":" and starting another commandline edit windows, etc.).
  1313.     YES!  Some people like it anyway (forbid ^W^W).
  1314.     Use Elvis's method too (commandline is like a one-line window into a buffer
  1315.     that contains the commandline history).
  1316. -    Add flags to 'whichwrap' for command line editing (cursor right at end of
  1317.     lines wraps to start of line).
  1318.  
  1319.  
  1320. Folding:
  1321. -    three basic modes:
  1322.     1. automatic: set folding level, all lines above this level will be folded
  1323.      - For C-code: fold more or less {} blocks.
  1324.      - For C-code: fold comments or non-comments.
  1325.      - Fold depending on the indent (or use a regexp).
  1326.      - Use syntax highlighting stuff to detect a folding level.
  1327.     2. half-automatic: recognize objects in the text, allow the user to
  1328.        fold/unfold these objects.
  1329.      - Allow the user to specify the marker, or regexp, or use syntax
  1330.        highlighting.
  1331.     3. manual: the user specifies which lines to fold or unfold.
  1332.      ":[range]fold".  Can use Visual mode to fold any range of lines:
  1333.      "vaB:fold".  Use ":[range]fold {text}" to give a name to the fold.
  1334. -    Unfold with "l" command on folded line?  Or at least ":[line]unfold".
  1335. -    Deleting a "folded" line deletes all the folded lines.  Putting it
  1336.     somewhere else puts all the folded lines.  Useful for moving functions
  1337.     around.
  1338. -    Save folding state in viminfo file.
  1339. -    Display folded lines with "... %d lines folded".
  1340. -    Implementation: Make a copy of the buffer, which only contains the
  1341.     displayed lines?
  1342. -    Add 'hidecomment' option: don't display comments in /* */ and after //.
  1343.  
  1344.  
  1345. Multiple Windows:
  1346. -    Allow vertical splitting of screen (once?).
  1347. -    Add 'bindsidescroll' option: patches/locksidescroll.
  1348.     Change: 'scrollbind' option for each window, 'scrollopt' list of flags for
  1349.     how to bind windows: 'h'orizontal, 'v'ertical, 's'earch, 'r'elative, etc..
  1350.     Also 'e'xecute some commands (search, vertical movements) in all bound
  1351.     windows.
  1352. -    Bind windows together, scrolling is done in both windows synchronous
  1353.     (horizontally and/or vertically and for seach commands).  Use 'winbind'
  1354.     option, with flags 'v'ertical, 'h'orizontal and 's'earch?
  1355.  
  1356.  
  1357. Marks:
  1358. -    When replacing with a line break, like in ":s/pat/^M/", move marks after
  1359.     the line break column to the next line. (Acevedo)
  1360. -    When filtering lines, try to keep the marks in the filtered lines.    Need
  1361.     to move some marks if the number of lines decreases.
  1362. -    When changing text, e.g. when formatting with "gq", try to keep the marks
  1363.     in the same position.
  1364. -    Add mark at the last change.  Per buffer.  Could use "'.".
  1365. 8    The '" mark is set to the first line, even when doing ":next" a few times.
  1366.     Only set the '" mark when the cursor was really moved in a file.
  1367. -    Add option to always use '" when starting to edit a new buffer.  Could use
  1368.     autocommand for this, but it gives an error message when the mark is not
  1369.     set.
  1370. -    Include marks for start/end of current word, sentence, paragraph, section.
  1371.     Useful in mappings.
  1372. 5    Add command to jump to next defined mark (see patch from Sieger).
  1373. -    Add possibility to ":jumps" to show the text in the line (for loaded files).
  1374.     Only show the part of the line that fits in the current screen width and
  1375.     contains the mark.    Highlight the column with the mark.  Show "<not loaded>"
  1376.     for not loaded buffers.  Also for ":tags" and ":marks".
  1377. -    When inserting/deleting characters in a line, adjust marks.
  1378.  
  1379.  
  1380. Digraphs:
  1381. -    Make it possible to enter a digraph after "r" (with CTRL-K).
  1382. -    Make it possible to enter "r<C-E>" and "r<C-Y>" (get character from line
  1383.     below/above).
  1384. -    Use digraph table to tell Vim about the collating sequence of special
  1385.     characters?
  1386. -    Add command to remove (all) digraphs. (Brown)
  1387. 7    Make it possible to switch between DOS and ISO digraphs for Win32 GUI.
  1388.  
  1389.  
  1390. Writing files:
  1391. -    When writing a file, name it "foo.new". Then rename "foo" to "foo.bak" and
  1392.     "foo.new" to "foo". If dir is not writable or on write error copy "foo" to
  1393.     "backupdir/foo.bak" and overwrite "foo". Check for correct group/owner and
  1394.     try to set it if not. NO: this breaks with hard links.    INSTEAD: make Amiga
  1395.     and MSDOS work like unix: first make copy of file, then truncate and
  1396.     overwrite original file. Use an option for this, default on for Unix, off
  1397.     for Amiga/MSDOS (Sayre has the algorithm worked out).
  1398. 7    When appending to a file, should Vim also make a backup and a 'patchmode'
  1399.     file?
  1400. 6    Add an option to write a new, numbered, backup file each time.  Like
  1401.     'patchmode', e.g., 'backupmode'.
  1402. 8    Only make a backup when overwriting a file for the first time. Avoids
  1403.     loosing the original when writing twice. (Slootman)
  1404. 7    On non-Unix machines, also overwrite the original file in some situations
  1405.     (file system full, it's a link on an NFS partition).
  1406. 7    When editing a file, check that it has been change outside of Vim more
  1407.     often, not only when writing over it.  E.g., at the time the swap file is
  1408.     flushed.  Or every ten seconds or so (use the time of day, check it before
  1409.     waiting for a character to be typed).
  1410.  
  1411.  
  1412. Various improvements:
  1413. 7    Add "gJ": join lines without inserting a space.
  1414. 8    Add warning when starting to edit a new file, another application creates
  1415.     the file before doing ":w" in Vim.  Like the "file changed" warning.
  1416. 7    Use growarray for replace stack.
  1417. 7    Have a look at viH (Hellenic or Greek version of Vim).  But a solution
  1418.     outside of Vim might be satisfactory (Haritsis).
  1419. 7    Add "--version" command line argument.    Print output of ":version" and
  1420.     exit.
  1421. 3    Make "2d%" work like "d%d%" instead of "d2%"?
  1422. 8    Make "more" prompt accept command characters, like "hit-return" prompt?
  1423.     Or extend it with more commands, like "less": 'b' for back, 'j' for one
  1424.     line down, etc.
  1425. -    For the "--more--" prompt, support the 'b'ack command (at least for
  1426.     ":clist").
  1427. 7    "g CTRL-O" jumps back to last used buffer.    Skip CTRL-O jumps in the same
  1428.     buffer.  Make jumplist remember the last ten accessed buffers?
  1429. 7    Add an option, which is a regexp, that disables warning messages which
  1430.     match that regexp (Tsirkin).
  1431. 7    Add a history of recently accessed buffer.    Maybe make "2 CTRL-^" jump to
  1432.     the 2nd previously visited buffer, "3 CTRL-^" to the third, etc.  Or use
  1433.     "3 g CTRL-^" for this?
  1434. 5    Add an option to set the width of the 'number' column.    Eight positions is
  1435.     often more than needed.
  1436. -    Add code to disable the CAPS key when going from Insert to Normal mode.
  1437. 5    Add command to go to a window that is editing a buffer with a specified
  1438.     name.  Like ":buf", but jumps to another window, if there is one.  The
  1439.     same command with "!" could be used to always go to that buffer, and jump
  1440.     to a window editing it only if there is one.
  1441.     Alternative: add an option to always jump to a window editing a buffer
  1442.     when opening a buffer and it's available (e.g. for ":cn").
  1443. -    Make it possible to ignore errors for a moment ('errorignore'?).  Another
  1444.     option to switch off giving error messages ('errorquiet'?).  Also an option
  1445.     not to give any messages ('quiet')?  Or ":quiet on", ":quiet off".
  1446.     Careful: For a severe error (out of memory), and when the user starts
  1447.     typing, error messages must be switched back on.
  1448.     Add pre-command to ignore errors for one command: ":ignore"?
  1449. -    Add the possibility to have scratch buffers.  They don't have a swap file.
  1450.     The name is not related to a file.    Use a 'scratch' option?
  1451. -    Add ":begin" command, keep getting lines until an ":end".  Useful for
  1452.     defining multi-line mappings (Webb).
  1453. -    Set date/protection/etc. of the patchfile the same as the original file.
  1454. -    Use growarray for termcodes[] in term.c
  1455. -    Default mapping for help files: <Tab> to position cursor on next |tag|.
  1456. -    Use getrlimit() (if possible) to set 'maxmemtot' and 'maxmem'.
  1457. -    Add <window-99>, like <cword> but use filename of 99'th window.
  1458. -    Should make it possible for ml_get() to keep more than one line locked.
  1459.     Use ml_get_locked()?  Needed to be able to make a regexp that understands
  1460.     line breaks.
  1461. -    Make a set of operations on list of names: expand wildcards, replace home
  1462.     dir, append a string, delete a string, etc.
  1463. -    Remove mktemp() and use tmpname() only?  Ctags does this.
  1464. -    Implement command like "[[" ("]]") for Java: go to the previous (next) '{'
  1465.     ('}') that's not in column 0.
  1466. -    When replacing environment variables, and there is one that is not set,
  1467.     turn it into an empty string?  Only when expanding options? (Hiebert)
  1468. -    Option to set command to be executed instead of producing a beep (e.g. to
  1469.     call "play newbeep.au").
  1470. -    Add string option to show in status line (like the [Help] item).  Per
  1471.     buffer.  Like 'titlestring'.
  1472. -    Add option to show the current function name in the status line.  More or
  1473.     less what you find with "[[k", like how 'cindent' recognizes a function.
  1474.     (Bhatt).
  1475. -    "gp" and "gP": like "p" and "P", but replace instead of insert (esp. for
  1476.     blockwise registers).
  1477. -    Add 'timecheck' option, on by default.    Makes it possible to switch off the
  1478.     timestamp warning and question. (Dodt).
  1479. -    Add patches from Burgnara for { and } in Ex address?  Also "[[" and "]]"?
  1480. -    Add ":first", ":bfirst", etc. to complement ":last", ":blast, etc.
  1481. -    When starting to edit a file that is already in the buffer list, use the
  1482.     file name argument for the new short file name. (Webb)
  1483. -    Use "patches/selectfile.tgz" as a base for a file selector in Vim.
  1484. -    Make 'smartcase' work even though 'ic' isn't set (Webb).
  1485. 7    When formatting text, allow to break the line at a number of characters.
  1486.     Use an option for this: 'breakchars'?  Useful for formatting Fortran code.
  1487. -    Add flag to 'formatoptions' to be able to format book-style paragraphs
  1488.     (first line of paragraph has larger indent, no empty lines between
  1489.     paragraphs).  Complements the '2' flag.  Use '>' flag when larger indent
  1490.     starts a new paragraph, use '<' flag when smaller indent starts a new
  1491.     paragraph.    Both start a new paragraph on any indent change.
  1492. -    Be able to redefine where a sentence stops.  Use a regexp pattern?
  1493. -    Be able to redefine where a paragraph starts.  For "[[" where the '{' is
  1494.     not in column 1.
  1495. -    Add ":switch bufname" command, like ":buf", but jump to window with that
  1496.     buffer, or open new window if there isn't one.
  1497. -    Use "instman.sh" from Elvis to install manpages?
  1498. -    Add option to make messages scroll up from the bottom, increasing
  1499.     'cmdheight' and remove the wait-for-return message.  Needs a setting for
  1500.     the maximum number of lines for which this will work.  And a setting for
  1501.     when the messages will be removed (any key press/timeout of N
  1502.     seconds/CTRL-L) (Webb).
  1503.     ALTERNATIVE: Keep a history of the last N messages.  Don't ask to hit
  1504.     return for that many messages.  Add command to scroll up/down in message
  1505.     history (Aerts).  Also need to keep the most important messages: Error
  1506.     messages are not overwritten by warning or informative messages.
  1507. -    Make count for "K" command, when 'keywordprg' is "man", work like
  1508.         "!man <count> <word>"
  1509. -    ":cd": echo the new current directory.
  1510. -    Add ":cdp": go back to the previous directory.  Need to remember the
  1511.     previous directory (or a stack of dir names?).  Then we also need ":cdn".
  1512. 8    Add $CDPATH patch from Raf?  Change it a little: add 'cdpath' option,
  1513.     which is filled from $CDPATH.  "." is dir of current file, "" is current
  1514.     directory.  Suggestion in docs to change it when it's wrong:
  1515.         let &cdpath=substitute(substitute($CDPATH,',','\\,','g'),':',',','g')
  1516. -    Make "gq<CR>" work on the last line in the file.  Maybe for every operator?
  1517. -    findmatchlimit() should be able to skip comments.
  1518. -    Add redirecting of Ex commands to a buffer: ":redir @ bufname".
  1519. -    Setting of options, specifically for a buffer or window, with
  1520.     ":set window.option" or ":set buffer.option=val".  Or use ":buffer.set".
  1521.     Also: "buffer.map <F1> quit".
  1522. -    When hitting <Esc> or CTRL-C in Normal mode, give a message to help novice
  1523.     users to get out: "Type  :q!  to quit Vim".
  1524. -    Add possibility to ask for confirmation before exiting Vim.
  1525. -    Add :delcr command:
  1526.                             *:delcr*
  1527.      :[range]delcr[!]    Check [range] lines (default: whole buffer) for lines
  1528.                         ending in <CR>.  If all lines end in <CR>, or [!] is
  1529.                         used, remove the <CR> at the end of lines in [range].
  1530.                         A CTRL-Z at the end of the file is removed.  If
  1531.                         [range] is omitted, or it is the whole file, and all
  1532.                         lines end in <CR> 'textmode' is set.  {not in Vi}
  1533. -    Should integrate addstar() and file_pat_to_reg_pat().
  1534. -    Add 'sidescrolloff' option, like 'scrolloff', to make the cursor always
  1535.     appear in the middle of the window horizontally (Benjamin Griffin).
  1536. -    When working over a serial line with 7 bit characters, remove meta
  1537.     characters from 'isprint'.
  1538. -    When 'wrap' is off, add commands to scroll screen left/right by half the
  1539.     screen width: "zH" and "zL"?
  1540.     NO: use "zH" and "zL" to work like "zt" and "zb", because that's what would
  1541.     be logical compared to the "H" and "L" commands. (Guckes)
  1542.     Use "z0" and "z$" to scroll half a page?
  1543. -    Use fchdir() in init_homedir(), like in FullName().
  1544. -    Use a current directory per window?  See patches from Chen.  Does a
  1545.     "chdir" when switching to another window.  ":lcd" only works for the
  1546.     current window, ":cd" for all windows.
  1547. -    In win_update(), when the GUI is active, always use the scrolling area.
  1548.     Avoid that the last status line is deleted and needs to be redrawn.
  1549. -    Vi compatibility (optional): make "ia<CR><ESC>10." do the same strange
  1550.     thing.    (only repeat insert for the first line).
  1551. -    That "cTx" fails when the cursor is just after 'x' is Vi compatible, but
  1552.     may not be what you expect.  Add a flag in 'cpoptions' for this?  More
  1553.     general: Add an option to allow "c" to work with a null motion.
  1554. -    Call maketitle() whenever curbuf->b_changed is set or reset, and include
  1555.     "Vim +" in the title for changed buffers.  How about the icon?
  1556. -    Give better error messages by using errno (strerror()).
  1557. -    Give "Usage:" error message when command used with wrong arguments (like
  1558.     Nvi).
  1559. -    Make 'restorescreen' option also work for xterm (and others), replaces the
  1560.     SAVE_XTERM_SCREEN define.
  1561. -    Add an option to make ":bnext" and ":bprev" wrap around the end of the
  1562.     buffer list.  Also for ":next" and ":prev"?
  1563. -    Implement a "sticky" help window, some help text lines that are always
  1564.     displayed in a window with fixed height. (Guckes)  Use "~/.vimhelp" file,
  1565.     user can edit it to insert his favorite commands, new account can contain a
  1566.     default contents.
  1567. -    Give warning message when using ":set t_xx=asdf" for a termcap code that Vim
  1568.     doesn't know about.  Add flag in 'shortmess'?
  1569. -    Make "vim -o file1 file2" start without the need to hit return.  Add 'O'
  1570.     flag in 'shortmess' to switch off file messages, or make them overwrite
  1571.     each other (also for "2 files to edit").
  1572. 6    Add ":che <file>", list all the include paths which lead to this file.
  1573. -    For a commandline that has several commands (:s, :d, etc.) summarize the
  1574.     changes all together instead of for each command (e.g. for the rot13 macro).
  1575. -    Add command like "[I" that also shows the tree of included files.
  1576. -    Add words to 'cinwords' to reduce the indent, e.g., "end" or "fi".
  1577. -    ":set sm^L" results in ":set s", because short names of options are also
  1578.     expanded.  Is there a better way to do this?
  1579. -    On the command line, where a % is expanded: "%:s/r/s/" substitution (Dixon)
  1580.     patches/dixon.329
  1581.     Also ":T": path relative to current directory. (Aaron)
  1582. -    Add ":@!" command, to ":@" like what ":source!" is to ":source".
  1583. -    Should be possible to write to a device, e.g. ":w! /dev/null".
  1584. -    Add 't_normal': Used whenever t_me, t_se, t_ue or t_Zr is empty.
  1585. -    Make strings in 'comments' option a RE, to be able to match more
  1586.     complicated things. (Phillipps)
  1587. -    Make the 'comments' option with "/* * */" lines only repeat the "*" line
  1588.     when there is a "/*" before it?  Or include this in 'cindent'?
  1589. -    ":cab map test ^V| je", ":cunab map" doesn't work.    This is vi compatible!
  1590. -    CTRL-W CTRL-E and CTRL-W CTRL-Y should move the current window up or down
  1591.     if it is not the first or last window.
  1592. -    Include-file-search commands should look in the loaded buffer of a file (if
  1593.     there is one) instead of the file itself.
  1594. -    "g CTRL-A" and "g CTRL-X": Increment/decrement alphabetical char
  1595.     (a -> b -> c)?    With flag in 'nrformats'?
  1596. 7l    Change 'nrformats' to include the leader for each format.  Example:
  1597.         nrformats=hex:$,binary:b,octal:0
  1598.     Add setting of 'nrformats' to syntax files.
  1599. 8    Add possibility for file name on the command line to be searched for in the
  1600.     'path',  when there is a special character before the file name ('<' ?).
  1601.     Or use ":gf fname" command (like ":e")?  ":[count]gf fname".
  1602. -    'path' can become very long, don't use NameBuff for expansion.
  1603. -    Allow the use of wildcards in 'path'.
  1604. -    When unhiding a hidden buffer, put the same line at top of the window as the
  1605.     one before hiding it. Or: keep the same relative cursor position (so many
  1606.     percent down the windows).
  1607. -    When entering the help window, don't resize to 'helpheight' if the user has
  1608.     reduced the size before (Webb). Keep the window height that the user set the
  1609.     window to in a "preferred window height" entry for each window.
  1610. -    Add a command like ":cn" that jumps to the next error, but uses an open
  1611.     window for the buffer with the error if possible, and opens a new window
  1612.     otherwise. Use ":cj"?
  1613. -    Make it possible for the 'showbreak' to be displayed at the end of the
  1614.     line.  Use a comma to separate the part at the end and the start of the
  1615.     line?  Highlight the linebreak characters, add flag in 'highlight'.
  1616. -    Some string options should be expanded if they have wildcards, e.g.
  1617.     'dictionary' when it is "*.h".
  1618. -    Use a specific type for number and boolean options, making it possible to
  1619.     change it for specific machines (e.g. when a long is 64 bit).
  1620. -    Add option for <Insert> in replace mode going to normal mode. (Nugent)
  1621. -    Add a next/previous possibility to "[^I" and friends.
  1622. -    Add possibility to change the HOME directory.  Use the directory from the
  1623.     passwd file? (Antwerpen)
  1624. -    When doing "[^I" or "[^D" add position to tag stack.
  1625. -    Add command to put current position to tag stack: ":push" or "gp".
  1626. 8    Add commands to push and pop all or individual options. ":setpush tw",
  1627.     ":setpop tw", ":setpush all".  Maybe pushing/popping all options is
  1628.     sufficient.  ":setflush" resets the option stack?
  1629.     How to handle an aborted mapping?  Remember position in tag stack when
  1630.     mapping starts, restore it when an error aborts the mapping?
  1631. -    Add command to put all filenames from the tag files in the argument list.
  1632.     When given an argument, only use the files where that argument matches
  1633.     (like `grep -l ident`) and jump to the first match.
  1634. -    When appending to a register, also report the total resulting number of
  1635.     lines.    Or just say "99 more lines yanked", add the "more".
  1636. -    Add ":grep" command. Works like ":make" but uses "grep -n" instead of
  1637.     "make", 'grepprg' instead of 'makeprg', 'grepformat' instead of
  1638.     'errorformat'.
  1639.     Even better: Use a builtin grep command?  Makes it possible to add the
  1640.     column number.
  1641. -    Add command to form an args list from all the buffers.
  1642. -    Keep a list of most recently used files for each window, use "gp" to go back
  1643.     and "gn" to go forward (like ^O and ^I for jumps) (Webb). Use ":files" and
  1644.     ":ls" to list the files in history order.
  1645. -    Add 'scrollmax' option, maximum number of lines to scroll display, above
  1646.     this a redraw is done.
  1647. -    Implement mouse support for the Amiga.
  1648. -    xterm: Implement support for visual feedback of mouse dragging.
  1649. -    Using right mouse button to extend a blockwise selection should attach to
  1650.     the nearest corner of the rectangle (four possible corners).
  1651. -    Precede mouse click by a number to simulate double clicks?!?
  1652. -    Change ":fixdel" into option 'fixdel', t_del will be adjusted each time t_bs
  1653.     is set? (Webb)
  1654. -    "gc": goto character, move absolute character positions forward, also
  1655.     counting newlines. "gC" goes backwards, "g^C" goes to absolute position
  1656.     (Weigert).
  1657. -    When doing CTRL-^, redraw buffer with the same topline (Demirel). Store
  1658.     cursor row and window height to redraw cursor at same percentage of window
  1659.     (Webb).
  1660. -    Besides remembering the last used line number of a file, also remember the
  1661.     column. Use it with CTRL-^ et. al.
  1662. -    When a window resizes, the line with the cursor should stay at the same
  1663.     percentage from the start of the window as it was before.
  1664. -    Check for non-digits when setting a number option (careful when entering hex
  1665.     codes like 0xff).
  1666. -    Add option to make "." redo the "@r" command, instead of the last command
  1667.     executed by it.  Also to make "." redo the whole mapping.  Basically: redo
  1668.     the last TYPED command.
  1669. -    Support URL links for ^X^F in insert mode, like for "gf".
  1670. -    Add 'wwwpath', used like 'path' for when "gf" used on an URL?
  1671. -    Add ":path" command modifier.  Should work for every command that takes a
  1672.     file name argument, to search for the file name in 'path'.    Use
  1673.     find_file_in_path().
  1674. -    ":help :s^I" should expand to ":help :substitute".
  1675. -    Highlight control characters on the screen: Shows the difference between
  1676.     CTRL-X and "^" followed by "X" (Colon).
  1677. -    Integrate parsing of cmdline command and parsing for expansion.
  1678. -    When inserting a register in insert mode with CTRL-R, don't insert comment
  1679.     leader when line wraps?
  1680. -    'flipcase' variable: upper/lower case pairs. (alternative: translate
  1681.     command, e.g. ":tr \248-\254 \216-\222") (From Elvis, don't like it). Insert
  1682.     comma's between pairs and allow a range, e.g. :set flipcase=a-zA-Z,..
  1683. -    Make the help key (<F1>) context sensitive?
  1684. -    Create a program that can translate a .swp file from any machine into a form
  1685.     usable by Vim on the current machine.
  1686. -    Add ":noro" command: Reset 'ro' flag for all buffers, except ones that have
  1687.     a readonly file. ":noro!" will reset all 'ro' flags.
  1688. -    Add a variant of CTRL-V that stops interpretation of more than one
  1689.     character.    For entering mappings on the command line where a key contains
  1690.     several special characters, e.g. a trailing newline.
  1691. -    The ":@r" commands should take a range and execute the register for each
  1692.     line in the range.
  1693. -    Add regex for 'paragraphs' and 'sections': 'parare' and 'sectre'. Combine
  1694.     the two into a regex for searching. (Ned Konz)
  1695. -    Make '2' option in 'formatoptions' also work inside comments.
  1696. -    Add 's' flag to 'formatoptions': Do not break when inside a string. (Dodt)
  1697. -    Add flag to 'formatoptions' to recognize the change of indent as the start
  1698.     of a new paragraph (for paragraphs without separating empty line, but extra
  1699.     indent for the new paragraph) (Leitner).
  1700. -    Consider adding patches/list_indent (indenting for bullet lists).
  1701. -    Add commands ":C", ":P" and ":X". ":C" does encryption and ":P" the same as
  1702.     ":p". What should they do exactly?
  1703. -    Option for filter when reading/writing a file for compression or crypting
  1704.     (-x command line option, -z option: gzip/gunzip).  Also for crypting the
  1705.     swap file.
  1706. -    When window size changed (with the mouse) and made too small, set it back to
  1707.     the minimal size.
  1708. -    Add "]>" and "[<", shift comment at end of line (command;  /* comment */).
  1709. -    Should not call cursorcmd() for each vgetc() in getcmdline().
  1710. -    Add the ex address '}', next empty line (like the "}" command).
  1711. -    When switching to another file and screen scrolls because of the long
  1712.     message and return must be typed, don't scroll the screen back before
  1713.     redrawing.
  1714. -    ":split file1 file2" adds two more windows (Webb).
  1715. -    Add the possibility to use more than one argument list: ":arglist 2".
  1716. -    When mouse click after 'r' command, get character that was pointed to.
  1717. -    Don't give message "Incomplete last line" when editing binary file.
  1718. -    Add number option to ":s//2": replace second occurance of string? Or: :s///N
  1719.     substitutes N times.
  1720. -    Add answers to ":substitute" with 'c' flag, used in a ":global", e.g.:
  1721.     ":g/pat1/s/pat2/pat3/cg": 'A' do all remaining replacements, 'Q' don't do
  1722.     any replacements.
  1723. -    Add ":a", ":i" for preloading of named buffers.
  1724. -    In Replace mode, tab replaces as many characters as it takes on the screen,
  1725.     text remains at the same position. Requires replace-stack to work with
  1726.     strings instead of characters? Implement 'replacealign' in a different way
  1727.     from Webb.
  1728. -    Allow autowrite when doing ":e file" (with an option 'eaw').
  1729. -    Make command line arguments options to be combined after a single dash, eg
  1730.     "-nb".
  1731. -    Allow a "+command" argument before each file name in the Vim command line:
  1732.     "vim +123 file1 +234 file2 +345 file3". ???
  1733. -    When entering text, keep other windows on same buffer updated (when a line
  1734.     entered)?
  1735. -    Check out how screen does output optimizing.  Apparantly this is possible as
  1736.     an output filter.
  1737. -    Change ".swp" to ".vim", because it give a hint who created the file?
  1738. -    Use termcap 'ts' and 'fs' entries for setting the window title. Check 'hs'
  1739.     and use minimum of 'ws' (if present) and Columns to truncate the title.
  1740. -    In dosub() regexec is called twice for the same line. Try to avoid this.
  1741. -    When line is too long to fit on screen, display part where cursor is (like
  1742.     nvi). Use an offset to the start of the first line on the screen.
  1743. -    Window updating from memline.c: insert/delete/replace line.
  1744. -    Optimize ml_append() for speed, esp. for reading a file.
  1745. -    V..c should keep indent when 'ai' is set, just like <count>cc.
  1746. -    :s///p prints the line after a substitution.
  1747. -    Updatescript() can be done faster with a string instead of a char.
  1748. -    Screen updating is inefficient with CTRL-F and CTRL-B when there are long
  1749.     lines.
  1750. -    Uppercase characters in ex commands can be made lowercase?
  1751. -    Add "P" command to insert contents of unnamed register, move selected text
  1752.         to position of previous deleted (to swap foo and bar in " + foo")
  1753. -    Insert octal numbers with CTRL-V o, hexadecimal with CTRL-V x and binary
  1754.     with CTRL-V b.
  1755. -    Add option to show character value under the cursor in octal, decimal, hex
  1756.     and screen code all the time (like 'ruler' plus "g CTRL-G").
  1757. -    Add word count to "g CTRL-G".
  1758. -    Add some way to show the current buffer number (in ruler?).
  1759. -    Add option to show characters in text not as "|A" but as decimal ("^129"),
  1760.     hex ("\x81") or octal ("\201") or meta (M-x).  Nvi has the 'octal' option to
  1761.     switch from hex to octal.
  1762. -    How does vi detect whether a filter has messed up the screen? Check source.
  1763.     After ":w !command" a wait_return?
  1764. -    Improve screen updating code for doput() (use s_ins()).
  1765. -    With 'p' command on last line: scroll screen up (also for terminals without
  1766.     insert line command).
  1767. -    Option to set time for emsg() sleep. Interrupt sleep when key is typed?
  1768.     sleep before second message?
  1769. -    Delete message after new command has been entered and have waited for key.
  1770. -    History stack for . command? Use "g." command.
  1771. -    Use insert/delete char when terminal supports it.
  1772. -    Optimize screen redraw for slow terminals.
  1773. -    Optimize "dw" for long row of spaces (say, 30000).
  1774. -    Add "-d null" for editing from a script file without displaying.
  1775. -    MSDOS: search for _exrc in the directory where the binary is, instead of
  1776.     using $VIM\_exrc.
  1777. -    In insert mode: Remember the characters that were removed with backspace and
  1778.     re-insert them one at a time with <key1>, all together with <key2>.
  1779. -    Amiga: Add possibility to set a keymap. The code in amiga.c does not work
  1780.     yet.
  1781. -    Implement 'redraw' option.
  1782. -    Add possibility to put the value of an option into the text: "'lines'p
  1783.     CTRL-R'lines'
  1784. -    Add possibility to put an environment variable into the text: "$DATE$p
  1785. -    Add special code to 'sections' option to define something else but '{' or
  1786.     '}' as the start of a section (e.g. one shiftwidth to the right).
  1787. -    Nopaste option: Mappings with non-printable characters are OK.
  1788. -    Add 'indent' option: Always use this amount of indent when starting a new
  1789.     line and when formatting text.
  1790. -    Use pipes for filtering on Unix.
  1791. -    Allow for +command and -option on any position in argv[].
  1792. -    Add commands like ]] and [[ that do not include the line jumped to.
  1793. -    When :unab without matching "from" part and several matching "to" parts,
  1794.     delete the entry that was used last, instead of the first in the list.
  1795. -    After :set nowrap remove superflous redraw with wrong hor. offset if cursor
  1796.     is right of the screen.
  1797. -    Recognize "$*" in 'makeprg'; replace it by the arguments to :make.
  1798. -    With :s///c replace \&, ~, etc. when showing the replacement pattern.
  1799. -    Command line: cursor up on empty line: go to previous command, on non-empty
  1800.     line: go to previous matching command.
  1801. -    Add text justification option.
  1802. -    Add put function that replaces the text under it.
  1803. -    After "inv"ing an option show the value: ":set invpaste" gives "paste is
  1804.     off".
  1805. -    Check handling of CTRL-V and '\' for ":" commands that do not have TRLBAR.
  1806. -    When a file cannot be opened but does exist, give error message.
  1807. -    Amiga: When 'r' protection bit is not set, file can still be opened but
  1808.     gives read errors. Check protection before opening.
  1809. -    When writing check for file exists but no permission, "Permission denied".
  1810. -    If file does not exists, check if directory exists.
  1811. -    MSDOS: although t_cv and t_ci are not set, do invert char under cursor.
  1812. -    Settings edit mode: make file with ":set opt=xx", edit it, parse it as ex
  1813.     commands.
  1814. -    ":set -w all": list one option per line.
  1815. -    When writing to a not writable file (with ":w!") ask for permission to
  1816.     overwrite it (if file can be made writable) and restore file to readonly
  1817.     afterwards.
  1818. -    Amiga: test for 'w' flag when reading a file.
  1819. -    :table command (Webb)
  1820. -    Add command to go to last non-blank in line (like 0 vs. ^, $ vs. ???)
  1821. -    Add new operator: clear, make area white (replace with spaces): "gb".
  1822. -    Make it possible for a user to define a new operator.  Implementation with
  1823.     internal scripting language or Perl?
  1824. -    Make ":sleep" accept floating point numbers, like ":sleep 0.01".
  1825. -    Add command to ":read" a file at a certain column (blockwise read?).
  1826. -    Add option to set the characters for "%", 'matchpairs', default "{,};(,)".
  1827.     Could set to "{,};(,);/*,*/;<,>". Or 'matchstrings' =
  1828.     (/*,*/),(^#if,^#else,^#endif).
  1829.     Also: set hierarchy for which things include other things that should be
  1830.     ignored (like "*/" inside /* */).
  1831.     Also: use "%" to jump from start to end of syntax region and back.
  1832. -    Add 'resizecmd' option: vi command to be executed when window is resized.
  1833. -    Add sort of replace mode where case is taken from the old text (Goldfarb).
  1834. -    Allow multiple arguments for ":edit", add them to the argument list.
  1835. -    Allow multiple arguments for ":read", read all the files.
  1836. -    Support for tabs in specific columns: ":set tabcol=8,20,34,56" (Demirel).
  1837. -    Add 'searchdir' option: Directories to search for file name being edited
  1838.     (Demirel).
  1839. -    Modifier for the put command: Change to linewise, charwise, blockwise, etc.
  1840. -    Add commands for saving and restoring options ":set save" "set restore",
  1841.     for use in macro's and the like.
  1842. -    Add option to set the number of lines when not to scroll, instead of the
  1843.     fixed number used now (for terminals that scroll slow with a large number of
  1844.     lines but not with a single line).
  1845. -    Keep output from listings in a window, so you can have a look at it while
  1846.     working in another window. Put cmdline in a separate window?
  1847. -    Add possibility to put output of ex commands in a buffer or file, e.g. for
  1848.     ":set all".  ":r :set all"?
  1849. -    'edit' option: When off changing the buffer is not possible (Really
  1850.     read-only mode).
  1851. -    When the 'equalalways' option is set, creating a new window should not
  1852.     result in windows to become bigger. Deleting a window should not result in a
  1853.     window to become smaller (Webb).
  1854. -    When resizing the whole Vim window, the windows inside should be resized
  1855.     proportionally (Webb).
  1856. -    Include options directly in option table, no indirect pointers. Use mkopttab
  1857.     to make option table?
  1858. -    When doing ":w dir", where "dir" is a directory name, write the current file
  1859.     into that directory, with the current file name (without the path)?
  1860. -    Add command to go to Nth character in the file, "123g|"?
  1861. -    Support for 'dictionary's that are sorted, makes access a lot faster
  1862.     (Haritsis).
  1863. -    Add "^Vrx" on the command line, replace with contents of register x. Used
  1864.     instead of CTRL-R to make repeating possible. (Marinichev)
  1865. -    Add "^Vb" on the command line, replace with word before or under the cursor?
  1866. -    Make contents of status line configurable, with a printf-like format string.
  1867. -    Option to make a .swp file only when a change is made (Templeton).
  1868. -    Add "+=" and "-=" to option setting: add or remove parts of a string option,
  1869.     add or subtract a number from a number option.    How do we insert in front/at
  1870.     the end of a sting option?    Automatically add a comma?
  1871. -    Support mapping for replace mode and "r" command (Vi doesn't do this)?
  1872. -    Set boolean options on/off with ":set paste=off", ":set paste=on".
  1873. -    In an Ex range, use { for start of paragraph, } for end of paragraph,
  1874.     [, ], etc.?
  1875. 5    Add 'ignorefilecase' option: Ignore case when expanding file names.
  1876.     ":e ma<Tab>" would also find "Makefile" on Unix.
  1877.  
  1878.  
  1879. From Elvis:
  1880. -    fontchanges recognized "\\fB" etc.
  1881. -    Search patterns:
  1882.       \=        match empty string, leave cursor here.
  1883.       \@        match word under cursor.
  1884.     but do:
  1885.       \@        leave the cursor "at" this position
  1886.       \w        match the word under the cursor
  1887.       \W        match the WORD under the cursor.
  1888. -    cursor up/down in insert mode moves to column where insert started.  Use
  1889.     different commands for this "<C-G><UP>" and "<C-G><Down>"?    Use
  1890.     set_curswant or not? (patch from Lord)
  1891.  
  1892.  
  1893. From Nvi:
  1894. -    'cdpath' option.
  1895. -    Allow editing lines that do not fit in the window.
  1896. -    Have a look at "vi/doc/vi.chart", for Nvi specialities.
  1897. 8    Add 'keytime', time in 1/10 sec for mapping timeout?
  1898. -    Add 'filec' option as an alternative for 'wildchar'.
  1899. 8    Lock a file when starting to edit it with flock() of fcntl().
  1900.  
  1901.  
  1902. From xvim:
  1903. -    Use '\' before commands to make them linewise.
  1904. -    Add :collapse, remove multiple blank lines (Demirel, Webb)?
  1905.  
  1906.  
  1907. From xvi:
  1908. -    CTRL-_ : swap 8th bit of character.
  1909. -    Add egrep-like regex type, like xvi (Ned Konz) or Perl (Emmanuel Mogenet)
  1910.  
  1911.  
  1912. From vile:
  1913. -    Show unprintable characters in hex. (or in octal)
  1914. -    When horizontal scrolling, use '<' and '>' for lines continuing outside of
  1915.     window.
  1916. -    Support putting .swp files in /tmp: Command in rc.local to move .swp files
  1917.     from /tmp to some directory before deleting files.
  1918.  
  1919.  
  1920. Far future extentions:
  1921.  
  1922. -    Make it possible to edit a register, in a window, like a buffer.
  1923. -    Add stuff to syntax highlighting to change the text (upper-case keywords,
  1924.     set indent, define other highlighting, etc.).
  1925. -    Mode to keep C-code formatted all the time (sort of on-line indent).
  1926. -    Several top-level windows in one Vim session.
  1927. -    Focus-follows-mouse for when using split windows.
  1928. -    Allow editing beyond end of line, just like there are all spaces. Switch
  1929.     this on with an option or special insert mode command. Also allow editing
  1930.     above start and below end of buffer.
  1931. -    Smart cut/paste: recognize words and adjust spaces before/after them.
  1932. -    Change the output to the message line. Don't redraw the screen until the
  1933.     next vi command. Remember message line for redraw. Integrate the command
  1934.     line in updateScreen().
  1935. -    Mode to keep text formatted while inserting/deleting. Use soft/hard returns
  1936.     with an option to switch this off.
  1937. -    Add column numbers to ":" commands ":line1,line2[col1,col2]cmd".  Block
  1938.     can be selected with CTRL-V.  Allow '$' (end of line) for col2.
  1939. -    Add open mode, use it when terminal has no cursor positioning.
  1940. -    Special "drawing mode": a line is drawn where the cursor is moved to.
  1941.     Backspace deletes along the line (from jvim).
  1942. -    Add a command or option to save the current editing session (which files
  1943.     are open, window sizes, file positions, etc.), so it can be resumed later.
  1944. -    Perform commands on multiple windows (:W%s/foo/bar/g), multiple arguments
  1945.     (:A) or multiple buffers (:B). Implement ":Bset", set option in all buffers.
  1946.     Also ":Wset", set in all windows, ":Aset, set in all arguments and ":Tset",
  1947.     set in all files mentioned in the tags file.  Add buffer/arg range, like in
  1948.     ":2,5B%s/..." (do we really need this???) Add search string: "B/*.c/%s/.."?
  1949.     Or ":F/*.c/%s/.."?
  1950. -    Support for underlining (underscore-BS-char), bold (char-BS-char) and other
  1951.     standout modes switched on/off with , 'overstrike' option (Reiter).
  1952. -    Add vertical mode (Paul Jury, Demirel): "5vdw" deletes a word in five lines,
  1953.     "3vitextESC" will insert "text" in three lines, etc..
  1954. -    Internationalization: wide characters and multibyte char support.
  1955. 4w    Recognize l, #, p as 'flags' to EX commands:
  1956.     :g/RE/#l shall print lines with line numbers and in list format.
  1957.     :g/RE/dp shall print lines that are deleted.
  1958.     POSIX: Commands where flags shall apply to all lines written: list, number,
  1959.     open, print, substitute, visual, &, z. For other commands, flags shall apply
  1960.     to the current line after the command completes.  Examples: :7,10j #l Join
  1961.     the lines 7-10 and print the result in list
  1962.  
  1963. vim:tw=78:sw=4:ts=4:
  1964. vim:comments=fb\:9,fb\:8,fb\:7,fb\:6,fb\:5,fb\:4,fb\:3,fb\:2,fb\:1,fb\:-,fb\:9q,fb\:8q,fb\:7q,fb\:6q,fb\:5q,fb\:4q,fb\:3q,fb\:2q,fb\:1q,fb\:9s,fb\:8s,fb\:7s,fb\:6s,fb\:5s,fb\:4s,fb\:3s,fb\:2s,fb\:1s,fb\:9l,fb\:8l,fb\:7l,fb\:6l,fb\:5l,fb\:4l,fb\:3l,fb\:2l,fb\:1l,fb\:9w,fb\:8w,fb\:7w,fb\:6w,fb\:5w,fb\:4w,fb\:3w,fb\:2w,fb\:1w,fb\:9b,fb\:8b,fb\:7b,fb\:6b,fb\:5b,fb\:4b,fb\:3b,fb\:2b,fb\:1b,fb\:9m,fb\:8m,fb\:7m,fb\:6m,fb\:5m,fb\:4m,fb\:3m,fb\:2m,fb\:1m,fb\:9?,fb\:8?,fb\:7?,fb\:6?,fb\:5?,fb\:4?,fb\:3?,fb\:2?,fb\:1?
  1965.